Unique field validation on Form Node


I am using a Dashboard form node with 4 elements that I pass into an SQL statement through a function node.

All is working fine but, i would like to only allow the user to input data into a single field for each search request. For example, if more than one field is filled out, throw an error of some sort that too many values were input.

There are probably many ways to do this, I coudn't find any that were like what i am trying to acheive though.

These are my payload objects:

This is my form setup:

Hope this makes sense


You can use the Notification node to popup a message to tell the user of his error. Alternatively you could disable other fields once one has been filled in, though I am not sure if you can do that in a form, so it might be necessary to use individual fields in that case.

Yes - I would build a form using separate elements instead - then you can use msg.enabled=false to disable the others as required.

Yeah ok, i was thinking of counting the number of payloads with a length >0 and if the count was >1, throw a notification to the dash. Not sure if that could work or not.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.