Validation using 2 instances of the same field

I am currently making a validators that uses the same field “date created” to search a list. the issue is since there is 2 instances of the same field it only pull across 1 reference for the field so i am unable to use the 2 values for the validation check. is there a way to use 2 instances of the same field in a validator in code studio.

I don’t believe you can do what you want to do.


Even though you’re displaying two copies of a fragment in a widget they appear to refer to only one field. You can verify this by putting this code in your validator:

“cs.log(JSON.stringify(fragment_presenter.get_values()));”

When you look at the output in Detective, you’ll see only one value listed for the fragment, regardless of how many you have placed in the widget. The value you see will always be from the last (closest to the bottom) copy in the widget.


I’ve worked around this in the past by adding a second field of the same type to my Object and using that when I have need of “bracketing” values in Search widgets. It’s a bit clumsy, but it works.


Regards,

Randy