10 years ago
6
Topic

Hi!

I have a form with FieldX, that is a select Dynamic. I need validade all fields created by user (using FieldX), to ensure that users do not select the same value twice in the same form.

For example, I have a select Dynamic with all users names. If user selects same user two times (Maria), I want to tell him that Maria is already selected in previous field.

Is there a way to do this check automatically, without using javascript code?

Thanks!

Get a VIP membership
4229 Posts
Kadministrator
10 years ago
3
Level 1

You probably need a custom validator for this

10 years ago
2
Level 2

Thanks for your reply Klas. Can you specify a little better what I need to do?

4229 Posts
Kadministrator
10 years ago
1
Level 3

You will need to write custom javascript validator for this. If you don't have your own developers you can contact Octopoos to give you the quote

10 years ago
0
Level 4

Thanks Klas.

I'm developing my own code, but I don't know how can I count number of fields that user adds. Since I'm using fieldX, I have to know the number of fields that user uses to compare, right?

10 years ago
1
Level 1

Hi,

I solved my validation issue!

Now I have a problem, I want validate only when user clicks "Save & Close" button. If there is repeated fields, when user clicks on button I want to show a message saying what is wrong and maintains user in same place, like when I have a required field that is not filled (SEBLOD makes this for required fields). How can I say to form that the submit button works only if validation returns true?

What I need is something like <button onclick="myFunction()">Save & Close</button>, where saving depends on myFunction() returns true or false. How can (where) I change button click event?

Thanks and I apologize for the amount of questions

10 years ago
0
Level 2

Hi, 

I resolved now my requirement!

Thanks for all

Get a VIP membership