The submit button on my form does nothing when I click it.
The submit button on my form does nothing when I click it.
This can happen when you have a hidden field that is required. Your form won't let you submit because there's still an empty required field, but it can't show you which because the field is hidden.
I do have hidden fields that are required. Do you know a way around this? I want make those fields not required when they are hidden, but required when they are shown.
If you're hiding them with Field Rules then make sure that you have the option set to "Ignore field values when not shown"
If you're hiding them with JavaScript or CSS then you'd need to make the field not required in your conditional logic. Here's a snippet I saved from a process that would be a good jumping off point:
$(document).ready( function() { // if archive is checked, make the document upload not required // and the reverse $('#Field66-0').change(function() { if ($(this).is(':checked')) { $('.toggle-required input').prop('required', false); $('.toggle-required span.cf-required').hide(); } else { $('.toggle-required input').prop('required', true); $('.toggle-required span.cf-required').show(); } }) })
I am using field rules, and i do have the option set to "ignore field values when not shown"
But . . . . I have these rules set to sections of questions, rather than the questions themselves. For example, if you look at the screenshot on my initial question, you'll see the "Remove Device" Section of questions. I'm hiding that section as a whole, instead of the individual questions.
Do you think I need field rules for each individual question?
My intuition says "you shouldn't need to" but it's definitely worth experimenting with.
Thank, Brian. I appreciate the help. I'm new to Laserfiche and learning as I go. People like you on LF Answers have been by far my biggest help.
Is there a place where I can make suggestions to Laserfiche for enhancements?
I feel like when you configure a field for a form, there should be a "Required IF" option, so you can set secondary mandatory questions right on the form builder.
Hi Addison,
What version of Forms are you using? If you can't submit the form when click Submit button but don't see a error message on the form, then it is a bug. Please open a support case with the exported process so we can do further investigation with your form.
For the enhancement of conditional set the field as required using field rule, this feature is already in our to do list.
If you would like to provide other suggestions in the future, you can just add a new post in this Answers site.
Hi, thanks for the response!
I am on version 10. I had required fields that I was hiding with Javascript. These fields were hidden, but still considered required. There was no error message showing because the fields were hidden, so the submit button would not take me anywhere. I fixed this by creating field rules instead of using Java. Sounds great about the required if being in your to-do list!
Please open a support case with your exported process and video to record the reproduce steps.