Form Control Rules: Is there a difference in formats?


Userlevel 4
Badge +10

Hi Folks,

I was working an issue thios morning and came across some redundant options on how to set up some controls to be conditionally disabled. After a little experimentation and referencing a solution by @cassymfreeman at this link. I came up with the following three solutions that successfully did the job.

  • cho_AbsenceType == "Leave" || cho_AbsenceType == "Sick"
  • or(equals(cho_AbsenceType,"Leave"),equals(cho_AbsenceType,"Sick")
  • cho_AbsenceType != ""

I was wondering if there are any practical differences between the three solutions or is it just dealer's choice.

Thanks and regards,

Patrick


2 replies

Userlevel 4
Badge +11

Hi,

if you want to access form also using Nintex Mobile, you shouldn't use directly javascript but only functions that are provided by Nintex, so only second solution will work on Nintex Mobile

 

if usage of Nintex Mobile app is not planned, then there is no difference between all the three solution you've written

 

Giacomo

Userlevel 4
Badge +10

Thanks @jackgelo! I glad I asked the question!

Reply