This topic contains 15 reply and 4 voices, and was last updated by Sekander Badsha 5 years, 2 months ago
Viewing 15 Posts - 1 through 15 (of 15 total)
Author Posts
June 6, 2014 at 7:16 pm 21513
Sekander Badsha Is it possible to place the submitted content of two (or more) custom fields on the same line? So, for example, Field A "Date_of_Birth" and Field B "Country_of_Birth" can be displayed on the posted page as a single line: Born 12/11/1966 in Australia.
June 9, 2014 at 6:34 pm 21645
John John

Any comment?

June 10, 2014 at 4:15 pm 21709
Sk Sk

Hello John,

sorry for late response.
And the answer of your question is YES. Yes it possible to place the submitted content of two (or more) custom fields on the same line. when you add custom fields then you could also add css class for the field. every field shows by lists. Your defined css class added with the list element like <li class="your-class">custom field</li>. so you could show the fields in line by write some css for the class.

thank you.

July 7, 2014 at 1:36 am 23072
John John

Sorry for my even later reply…

I’m a bit stumped – when I put my class into the field it shows up in the form but not in the submitted post.

July 8, 2014 at 4:41 pm 23191
Sk Sk

Hello John,

The front end view of data depends on the theme you using. If you want to change the style please hire a developer.

Thank you

July 12, 2014 at 5:43 pm 23381
John John

Yes it possible to place the submitted content of two (or more) custom fields on the same line.

This topic is marked Resolved, but I don’t think this is correct.

Editting the style sheet of my theme would only work if Frontend User lets me apply unique classes to the submitted fields in the front end view.

All fields are <div class="entry-content"><ul class="wpuf_customs"><li> – so any CSS I use will affect them all.

July 12, 2014 at 10:36 pm 23401
Sekander Badsha Sekander Badsha

Hello John,
If you want to style one single element but all the elements have same class, in that case you may use CSS pseudo-class. Here you can see a detailed documentation about pseudo-class:

July 16, 2014 at 1:44 am 23628
John John

Thank you for the suggestion.

I tried:
.wpuf_customs li:nth-child(4n + 2), .wpuf_customs li:nth-child(4n + 3) {display:inline;}

Unfortunately this doesn’t work because I don’t know in advance how many fields will be submitted by the form. Some fields are not required and more than one image field can be submitted, for example.

July 17, 2014 at 12:30 pm 23695
Sekander Badsha Sekander Badsha

Make the form first and then apply the CSS. In that way it should work.

July 17, 2014 at 7:04 pm 23726
John John

I’m sorry, I don’t understand. I did make the form first but I can’t see how to apply CSS to the content of the submitted fields because they don’t have unique classes and the :nth-child pseudo-class approach requires that I know how many fields will actually be submitted. This, as I said, will vary from one post to the next.

July 20, 2014 at 7:56 pm 23811
Sekander Badsha Sekander Badsha

A developer would understand your requirements and would make the feature available for you. Please hire a developer.

July 22, 2014 at 3:58 am 23904
John John

I don’t believe it is possible for a developer to do this without rewriting code in wpuf-functions.php.
As coded, there is no way to individually style the output of custom fields. Using nth-child pseudo-class, as you suggested, is the nearest, but for the reasons I gave, it is inadequate.

By adding classes to wpuf-functions.php, such as <li class="imagefield"> and <li class="textfield"> it is at least possible to separately style those elements. However, the custom text fields simply cannot be individually styled unless the number of fields submitted by the forms is forced to remain the same by making them all ‘Required’.

In my view this issue is not resolved because it’s a limitation inherent to Frontend Pro and should be addressed in a future release.

July 22, 2014 at 2:09 pm 23944
Sekander Badsha Sekander Badsha

Why you’d need to edit the wpuf-functions.php file ? we have given you fields to insert css classes in the form input fields. You can write whatever class you want to apply.

July 22, 2014 at 2:24 pm 23945
Mahi Mahi

Hello John,

Sorry for inconvenience. Please follow these steps:

1. When you create your form there is an option to insert every field’s class name


Insert different class names as necessary.

2. Now open your theme style.css file and apply css accordingly.

you have to know css very well.


July 23, 2014 at 1:19 am 23989
John John

I’m afraid this thread has gone full circle and you’ve given me the same answer Sk_Shaikat gave me at the start to a question I didn’t ask.

I am not trying to style the fields in the form. I can see that is easy.
I am trying to style the submitted content of those fields in the front end view.

Because these are all generated by the same bit of code in wpuf-functions.php, every submitted text field has the same class, so they cannot be individually styled.

July 27, 2014 at 5:22 pm 24190
Sekander Badsha Sekander Badsha

Hi John,
Please provide your admin credentials. I’ll have a look about what’s happening inside.

Viewing 15 Posts - 1 through 15 (of 15 total)