Skip Navigation

[Resolved] Generic select field is not required as defined

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

Problem:

The issue here is that the user had set their generic field to required, however on the frontend the field was not being required.

Solution:

In my testing of this on the client's site the field does display as required.

It could be caching for the client that was causing this issue.

This support ticket is created 5 years, 9 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by matijaK 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1226355

I have a cred form that users to my website use to submit an application for a free language course at hidden link

The form is fairly simple, includes some CRED fields and two generic fields.
The two generic fields are both select type and have the Required option set to 1.:

<label>Jezik</label>
[cred_generic_field type='select' field='jezik-select' class='prijava-select form-control' output='bootstrap']
            {
            "required":1,
            "default":[],
            "options":[{"value":"1","label":"angleščina"},{"value":"2","label":"nemščina"}]
            }
      [/cred_generic_field]

But as you can see on the link above, the form does not stop the user from submitting if they don't select anything.

Could you please let me know if I'm doing wrong?

#1226462

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-04-05 at 10.49.41 AM.png

Hi Matija,

Thank you for contacting our support forum.

I took a look at this for you and the field does seem to be required. See Screenshot

Could you send me a screenshot of what is happening on your end ?

Thanks,
Shane

#1226726

Hi Shane,

I'm sorry, I don't really get what's going on. I could swear that this field was not required when I submitted the post, which is, of course, absurd.

Thanks anyway.