I have a form that allows a user to respond to a request using a multiple-choice field called ‘Response’ with values of “confirm” or “object”. In both cases I allow the user to add comments in a short text field that is also on the form.
What I want to do is require the notes field if the Response value is “object”.
There isn’t a native way to do this in Knack that I know of, other than to have three versions of the notes field - one required, one not required and one that will get the values from the other two based on record rules. I’ll do this if I have to but I would rather not have three fields doing the work of one.
Fortunately, the Knack Toolkit Library has this feature and my app already uses KTL for other things. Great! Unfortunately, when I try to use the _req keyword nothing happens. The text doesn’t even hide itself from display like it is supposed to. I have set the “formPreValidation” setting to true, so that shouldn’t be the issue.
Any suggestions? Getting _req to work would be my preference, but if someone knows another way to do this that is simple and reliable then that would be OK also.
Thanks!