Notifications
Clear all

Drop-down list: Mandatory choice other than the first...

10 Posts
3 Users
4 Likes
529 Views
Posts: 5
Topic starter
(@scoufy)
Active Member
Joined: 1 year ago

Hi,

I use two "selection, drop-down" type fields, Country and Gender, they are mandatory.

I would like the first in the list to be a default choice such as "Make a choice" and that this does not count as a valid choice?

Example for gender:
- Make a choice - (Visible by default, invalid and require you to choose from the rest of the list)
- Woman (valid)
- Male (valid)

9 Replies
Posts: 68
Customer
(@tutrix)
Member
Joined: 4 years ago

@scoufy

what settings are you using?

Gender Drop Down

https://app.screencast.com/kyvqST8EYzbIM

 

Reply
Posts: 5
Topic starter
(@scoufy)
Active Member
Joined: 1 year ago

@Tutrix 

Here is what I use

wpforo field1

 

I changed it to "Display default values?" to NO

But that doesn't change anything, if the user doesn't choose anything and leaves
--- Choose --- (--- choisir ---)
No message indicates that he must choose among the other suggestions... Which is what I'm trying to do.

Reply
1 Reply
Customer
(@tutrix)
Joined: 4 years ago

Member
Posts: 68

@scoufy 

OK, you are right, I just tested it,

--- Select --- is removed when the drop down field is required.

Reply
Posts: 68
Customer
(@tutrix)
Member
Joined: 4 years ago

Hi @scoufy

Now you have added --- Choisir --- as an additional genre. 😉 
This makes no sense.
That is why this option is removed from the required field.

<select name="data[field_c0f1b66]" id="data_field_c0f1b66_6506c0f23937c" class="" required="required" autocomplete="off">
<option value="--- Choisir ---">--- Choisir ---</option>
<option value="Femme">Femme</option>
<option value="Homme">Homme</option>
<option value="Agenre / Non-binaire">Agenre / Non-binaire</option></select>
Reply
1 Reply
(@scoufy)
Joined: 1 year ago

Active Member
Posts: 5

Hi @tutrix 

yes, I added "choose" because the idea of having a default field which is not taken into account.
Since the field is mandatory, it should force people to make a choice other than the default field (here it's "choose" or "select").

most will not change and will leave the first choice ("woman"), or Belgium for the country. The objective is to know the user's choice (and limit fake accounts which only fill out the required fields..)

I understand that it is not possible to make the field mandatory from the settings. The default choice should be like this I think:

<option value="" disabled selected>--- Choose ---</option>

I don't know where to change this or if the developers can add this possibility for this type of field, I ask the question to the admins @astgh and @tomson

Reply
Razmik
Posts: 76
Admin
(@blackraz)
Famed Member
Joined: 9 years ago

Hi @scoufy ,

I've requested the developers to review this issue, and I will get back to you with any updates as soon as I have them.

Reply
3 Replies
(@scoufy)
Joined: 1 year ago

Active Member
Posts: 5

@blackraz 

Thank you, I think it makes more sense for a mandatory field to force the user to make a choice.

I'm looking forward to this 🤗 

Reply
Razmik
Admin
(@blackraz)
Joined: 9 years ago

Famed Member
Posts: 76

@scoufy 

The issue has been resolved. The fix will be included in the upcoming wpForo update. Please stay tuned for the forthcoming wpForo update.

Reply
(@scoufy)
Joined: 1 year ago

Active Member
Posts: 5

@blackraz 

Thank you for the information and for the follow-up, it’s nice!

Reply
Share:
Scroll to top