Skip to content

Verify value is unique before continuing multi step form. #6294

Answered by melohagan
poirazis asked this question in Help
Discussion options

You must be logged in to vote

Hi @poirazis

Definitely a common use case! I had a go and I think this works reasonable well:

  1. Add a form with a Data Provider, form fields and save button
  2. The Save button will have the usual Validate Form and Save Row actions
  3. Add a filter binding to the Data Provider as follows:
  4. Configure validation on the 'Value' field (the form field you want to ensure is unique)

JavaScript

return $("New Data Provider.Rows Length") === 0 ? $("Form.Fields.Value") : "NOT_UNIQUE";

Replies: 7 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@poirazis
Comment options

Answer selected by melohagan
Comment options

You must be logged in to vote
1 reply
@melohagan
Comment options

Comment options

You must be logged in to vote
1 reply
@melohagan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JCV67
Comment options

Comment options

You must be logged in to vote
2 replies
@Bewo
Comment options

@JCV67
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
bb-filtering Filtering data validation Relating to validation/verification/constraints
4 participants