_req using ktlCond #522
-
I am trying to require a field in a form view based on the value of another field and am getting a weird result - the field on which the condition is based is being required along with the field that I want to require. The condition is not respected. Here is sample code entered in the Respond view's description: _req=Notes, [ktlCond, has, test, NotesOld, Respond] The expected result is that if "test" is entered in the NotesOld field in the Respond view then the Notes field (also in the Respond view) will be required. Instead, both Notes and NotesOld are required regardless of what I type into the NotesOld field. Yes, formPreValidation is set to true. Notes is a paragraph text field and NotesOld is a short text field. Any idea what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't believe it will work on a form input. Can you try adding square brackets around your first parameter. _req=[Notes] , [ktlCond, has, test, NotesOld, Respond] When using parameter groups the square brackets matter. Craig |
Beta Was this translation helpful? Give feedback.
I don't believe it will work on a form input.
I have already raised this as an issue.
Can you try adding square brackets around your first parameter.
_req=[Notes] , [ktlCond, has, test, NotesOld, Respond]
When using parameter groups the square brackets matter.
Craig