cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

What programming language is used in Nintex Form Add Rule validation?

Jump to solution

What programming language is used in Nintex Form Add Rule validation?

Labels: (2)
Tags (1)
Reply
14 Replies
Workflow Hero

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

I'm not sure, but is there an issue with your browser or where you are using it? Or just curious?

0 Kudos
Reply
Not applicable

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

I am trying to add a validation rule on My Nintex form to check a date field to be within a range . I have tried

and( validation 1 , validation 2) didn't work

I tried validation 1 && validation 2 ....didn't work

I'm wondering what is the issue, maybe the format of my condition isn't accurate.

0 Kudos
Reply
Not applicable

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

also in another scenario I want to add a formation rule to disable an item when

userProfileLookup(Current User,"pdsbMyPosGroups") is 41 or 50 or 12

How do I write the code below code doesn't work

userProfileLookup(Current User,"pdsbMyPosGroups") = 41

Or

userProfileLookup(Current User,"pdsbMyPosGroups") = 50

OR

userProfileLookup(Current User,"pdsbMyPosGroups") = 12

0 Kudos
Reply
Workflow Hero

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

To use a rule you just need to use an expression that returns true or false. There isn't necessarily a programming language behind it.

The condition that will mark the control as invalid and prevent the form from being submitted if the condition expression evaluates to TRUE. If the expression evaluates to FALSE, the rule will not be triggered. The formula builder button (to the right of the Condition field) can be used to aid construction of condition formulas. The form will not be submitted if the validation rule evaluates to TRUE.

So to use an expression that needs an operator, use

String literals must be contained in double quotes (e.g. Option=="High").

== is equal to

=== is exactly equal to (value and type)

!= is not equal

!== is not equal (neither value or type)

> is greater than

< is less than

>= is greater than or equal to

<= is less than or equal to

&& and

| | or

! not

Use the {Self} variable (available in the Named Controls tab in the Formula Builder) to reference the value in control associated to a rule within a condition

If comparing two date controls you can (DateControl1 < DateControl2) this is to mean that DateControl1 must be greater in order to be valid and allow submit.

Reply
Workflow Hero

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

Just make sure pdsbMyPosGroups is the internal name of the property, and also it is probably returning the value as a string. So you will need to compare like the following:

userProfileLookup(Current User,"pdsbMyPosGroups") == "41"

notice the double equal

0 Kudos
Reply
Not applicable

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

Andew please help me to add the following validation

I have Estimated Hours control on my Nintex form and it is a choice field values 0-24 defaulted to 0

I also have another control called Estimated Minutes , a choice field values 00,15,30,45 , defaulted to 00

How can I write a condition to make sure at lease a minute has been selected?

I have tried so many different conditions and it doesn't work

0 Kudos
Reply
Workflow Hero

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

You should be able to do

Minutes != "00" && Hours != "0"

Is this what you mean, to not allow 0:00 to be selected?

if not, let me know.

0 Kudos
Reply
Not applicable

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

yes that is what I mean to not allow 0:00 I added your validation but it doesn't work

0 Kudos
Reply
Workflow Hero

Re: What programming language is used in Nintex Form Add Rule validation?

Jump to solution

That's because I wrote it backwards.

The condition that will mark the control as invalid and prevent the form from being submitted if the condition expression evaluates to TRUE

So change it to

Minutes == "00" && Hours == "0"

0 Kudos
Reply