• Hello

    Is it possible to validate that the user has made a select box choice?
    I have an age selector with the following possible selections:
    Please select…
    14
    15
    16
    17
    18
    19
    I’ve set required field true but that doesn’t prevent form completion if the selection “Please select…” isn’t changed.
    I’ve also tried Regex validation of /^\d{2}/ but that doesn’r work either.
    Help please!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, in regards to your comment.

    I’ve set required field true but that doesn’t prevent form completion if the selection “Please select…” isn’t changed.

    Are you saying that even if the person does not select a field the form still goes through?

    The brackets will make it work like you want. Set your options like this:
    [Please select…]
    14
    15
    16
    17
    18
    19

    Thread Starter Trainshed

    (@trainshed)

    Hi Mike

    Thanks, that works fine. And a very quick support response.

    As a matter of interest and in general how would I format a Regex check? I found somewhere that it was terminated at each end by / but I’m not sure that is right. Is there a guide to using Regex on FS Contact From.

    Also is there a way of requiring two entry fields for email and validating that they match?

    I am really impressed by FS Contact Form and Database.

    Thanks
    Simon

    @trainshed, please check the following documentation. Let me know if this is what you are looking for.

    In regards to regex there is no real guide for FSCF. You might like to check the following documentation. There is a little section about regex.

    Thank you

    Thread Starter Trainshed

    (@trainshed)

    Great, thanks

    I should have seen the option but it was at the bottom, not with all the other option checkboxes, so I missed it. Sorry and thanks for prompt support.

    Simon

    You are most welcome. Can you mark this support thread as resolved if you don’t need any more help.

    Kind regards

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Validate select field’ is closed to new replies.