-
I have a multi step form, where in the first step the user enters the Contact's mobile number. My thought was to insert a Data Provider, filtered on the Form Field value, and if it has 0 records it means the value is unique. Any ideas on how to achieve this using the above, or some other method ? Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Hi @poirazis Definitely a common use case! I had a go and I think this works reasonable well:
JavaScript
|
Beta Was this translation helpful? Give feedback.
-
Hey @melohagan It seems that the Validation Rules are checked BEFORE the "On Change" defined actions, which leads to the below behavior. Screen.Recording.2022-06-14.at.12.52.04.PM.mov |
Beta Was this translation helpful? Give feedback.
-
I know @melohagan , i just used it to make sure |
Beta Was this translation helpful? Give feedback.
-
Hello @melohagan |
Beta Was this translation helpful? Give feedback.
-
Hey @JCV67 Create a Form, Mode : Update
The above setup will update State.UniquePhone whenever the Text Input looses focus, and you can use a Paragraph with Conditional UI to show the error message. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Thanks @JCV67 for your fast reply! But i didn't get working the solution from @melohagan. I can't find the reason. For testing i've added a number field, which is updated with the number of rows from the data set provider. Triggerd on change of the field which should be unique. The number of rows is correct. And the table shows the right row, or no row if it's unique. In my test-db are only 6 rows. See in the video below. Bildschirmaufnahme.2024-01-06.um.16.36.13.movThe Javascript is: Can anybody gave me an hint? |
Beta Was this translation helpful? Give feedback.
Hi @poirazis
Definitely a common use case! I had a go and I think this works reasonable well:
JavaScript