prevent duplicate id in forms

12-12-2021 05:23 AM
New Contributor

I do not need to duplicate Code in my data .

for example if I entered Code number ( 3 ) in the next form i need to notify me if i entered code before . 

0 Kudos
1 Reply
Esri Regular Contributor

Hello @RamiNagy

If you don't plan on sharing the form publicly one option would be to use a custom JavaScript function to query the feature service the survey is pointing to and see if the value exists in the data. We have a sample in Survey123 Connect that demonstrates querying feature services using JavaScript functions.

Thank you,
0 Kudos