Hello everyone, I'm trying to get a form in which I'm getting values from a Sharepoint list called General Information in a certain field that is the No_Id, if the user decides to change it when submitting the form again a warning message appears that this value was modified but I'm also trying to make sure that if this value already exists in that list, it doesn't allow the form to be submitted and also shows a message that this value exists, how can I do that? At the moment the only formula I have in the field in the OnChange part is the following:
If(Value(DataCardValue2.Text) <> ThisItem.No_Id, Notify("The value has changed", Notification.Type.Information)))
Lookup the value in the list and set a variable visibleSubmit to false if it exists and true if it doesn't. Show a notification message and set the visible property of the Submit button to visibleSubmit. On visible of the screen set visibleSubmit to true.
Or you can just disable the button instead of making it invisible
Or for the notification you could popup a message hidden in a container by making it visible
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.