Skip Navigation

[Resolved] Display all drop-down (select) field values

This thread is resolved. Here is a description of the problem and solution.

Problem:

Is there a way to display all values of a drop-down (select) field so that the user does not have to click to see the possible values?

Solution:

There isn't such kind of feature within Toolset form plugin, and it is default behavior of HTML select field.

Relevant Documentation:

https://www.w3schools.com/tags/tag_select.asp

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by GamX 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1137781
desired field display.png
current field display.png
test-select FIELD SETTINGS.png

Hello, is there a way to display all values of a drop-down (select) field so that the user does not have to click to see the possible values?

EXAMPLE FORM CODE with one dropdown/select field:

[creduserform]
<div class="form-group">
<label>test-select</label>
[cred_field field="test-select" force_type="field" class="form-control" output="bootstrap"]
</div>
[cred_field field="form_submit" output="bootstrap" value="Submit" class="btn btn-primary btn-lg"]
[/creduserform]

SEE SCREENSHOTS:

- current field settings
- current field display
- desired field display (without having to click) - this can look different from the attached, I just want for all values to be visible without clicking

Thanks!

#1138062

Hello,

There isn't such kind of feature within Toolset form plugin, and it is default behavior of HTML select field, see document:
hidden link
click button "Try it Yourself "
see the live demo here:
hidden link

In your case, I suggest you switch to custom radio field, then all options will be displayed without clicking.

#1138268

The reason I was hoping to modify the drop-down field display was because radio buttons are really difficult to set to null after they are submitted 🙂

But I understand the limitations, was just hoping for a way to tweak either one. Thanks anyway!