• Resolved mica123

    (@mica123)


    I very much apologise, but I seem to be running into problems. I do like the Google Forms and I would very much like to keep it, but here is another problem:
    my date fields and fields based on Choose from list are required – but there is no error when these fields are not filled in. I experimented by changing the Choose from list field to Checkboxes and that works – but I need the Choose from list type of field.
    Can you help? I hope so.
    Thank you.

    https://www.ads-software.com/plugins/wpgform/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    Have you looked at using the validation option? Google Forms has an option to use jQuery Validation which has a lot of capability.

    Thread Starter mica123

    (@mica123)

    Many thanks for replying. I am afraid that I don’t know about this option. Where would I find it?

    Thread Starter mica123

    (@mica123)

    OK, I went for the Custom Confirmation Page Style using Ajax. This sorted out the validation.
    If it is not too much trouble, I would be grateful if you could tell me how I can get rid of the dialog popups after the successful submission.

    Thank you.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Here is a link to an article I posted on validation when I first implemented it. Here is a sample form which uses validation.

    Thread Starter mica123

    (@mica123)

    Actually, I didn’t realize that there was an option for the Google Form Validation in your Google Forms. I didn’t have it enabled. So I enabled it and it seems to work with the Redirect style.

    I think I’ll have to give it a rest now because I tried so many things. I’ll start afresh tomorrow and let you know if it really works. I just enabled this option for all fields – do I take it that this all that is required? I have too many required fields and it would be a pain to go through each of them.

    Many thanks for your patience!

    Plugin Author Mike Walsh

    (@mpwalsh8)

    If you just enable validation it will pick up the required field information from the source HTML. If you want to do anything specific, for example check for a URL or something like that, then you need to get the specific field information.

    Thread Starter mica123

    (@mica123)

    The Google Form Validation works – many thanks. I also found your option for placeholders which is useful.
    The only nagging thing is that the red message alerts work for text fields if they are not filled in. Date fields and select type fields generate a single header error message at the top which makes it a bit difficult to find the offending field on the page. One could live with that I suppose – a better solution would be to find a way to change the color of the text once the user has typed it in. This works fine for text fields, but not for date fields for example. I experimented with the CSS property for focus – but this is not the same thing because the color reverts to the original color once it is out of focus.
    I take it that this would not be an easy thing to do?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I don’t know – I implemented validation long before Google added date fields to Google Forms. When I have some time I’ll modify one of my test forms and add a date to it and see what it looks like.

    The way Google has implemented a date, it is actually three separate input fields so I don’t think jQuery validation will be able to handle it without doing something special.

    Thread Starter mica123

    (@mica123)

    Many thanks for looking into this. Is the jQuery validation supposed to work also for select type of fields?

    Also, I wonder if you have been able to identify the problem with the date formats we talked about in another topic here?

    Thread Starter mica123

    (@mica123)

    Hello Mike,

    Just to let you know that I have only now found your tip on highlighting missing fields on a Google Form (https://michaelwalsh.org/blog/2012/03/highlighting-missing-fields-on-a-google-form/). This works for both date, select and multiple choice fields. So you have already solved the problem. So I would be happy with that. Obviously, if you would want to look into it in more detail, that would always be welcome.
    I’ll mark it as resolved, but I would still like to know if the date field can be displayed in the dd/mm/yyyy format on form? Please, let me know.
    Many thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Required not working for date and choose from list fields’ is closed to new replies.