Skip to main content
Nintex Community Menu Bar
Solved

Displaying a field based on a choice field using Nintex Mobile

  • September 10, 2014
  • 8 replies
  • 420 views

Chris_Ben
Nintex Employee
Forum|alt.badge.img+14

Hi all,

 

I'm trying to implement the classic select an option from a choice field and if your item isn't listed choose the 'other' check box and a new text box will appear where they can type what 'other' means.  I only want that text box displayed if 'other' is selected.  By way of example, let's say we want someone to fill in which Nintex Products they are interested in but only want to mention the main ones.  The choice field is called productChoices.  Anything else they can tick 'other' and type the name in:

 

Tell us what Nintex Products you are interested in:

[ ] Workflow

[ ] Forms

[ ] W/F for Project Server

[ ] Other

 

I've created a hide rule on the 'other' field that parses this list and checks to see if other has been ticked.  I can't do a simple hide if productChoices='other' because the person may have ticked some other products too.  Therefore I've used the contains formula.

Hide if: !contains(productChoices, 'other')

 

That works perfectly for the web form (on-prem and live) but unfortunately it doesn't work with Nintex Mobile.  Does anyone have an alternate formula I could use?

 

Thanks,

Chris

Best answer by jackgelo

Hi Chris Ben‌!

I've found a way to make it work also on Nintex Mobile!! instead of your rule try not(contains(productChoices, 'other'))

I've found in other situation that base Javascript function (the ! in your code) is not supported in Mobile, while using runtime function works well

Giacomo

8 replies

Chris_Ben
Nintex Employee
Forum|alt.badge.img+14
  • Author
  • Nintex Employee
  • September 12, 2014

Hi Nidish,

Thanks for your reply.  Unfortunately my version of Nintex mobile doesn't support calculated fields but I put one into the "normal" mobile form and got a string like this "[Workflow,Other].  Therefore I'm pretty sure my formula is correct but for some reason Nintex Mobile doesn't like it.

Cheers,

Chris


Chris_Ben
Nintex Employee
Forum|alt.badge.img+14
  • Author
  • Nintex Employee
  • June 6, 2016

Glad it helped Karen


Forum|alt.badge.img+11
  • Rookie
  • November 2, 2016

Chris Ben ,

I hope this issue was resolved as this is an old post. Could you please post your solution and mark it as correct to help others on the community.


Chris_Ben
Nintex Employee
Forum|alt.badge.img+14
  • Author
  • Nintex Employee
  • November 16, 2016

Hi Kapil, thanks for your follow-up.  Unfortunately this was not resolved.  Nintex mobile has been updated a number of times since so it may now work but I haven't tested it.


Forum|alt.badge.img+11
  • Scout
  • Answer
  • May 15, 2017

Hi Chris Ben‌!

I've found a way to make it work also on Nintex Mobile!! instead of your rule try not(contains(productChoices, 'other'))

I've found in other situation that base Javascript function (the ! in your code) is not supported in Mobile, while using runtime function works well

Giacomo


Chris_Ben
Nintex Employee
Forum|alt.badge.img+14
  • Author
  • Nintex Employee
  • May 15, 2017

Brilliant work Giacomo!  Now that you mention it, I do recall ‌'s InspireX session this year where he said it's better to use operators like "not" instead of "!" and "greaterThan" instead of ">".  Sounds like the beginning of a blog post eh boys?


Forum|alt.badge.img+14
  • Scholar
  • May 15, 2017

Andrew posted short blog on the topic as well  


Forum|alt.badge.img
  • Novice
  • May 22, 2022

Hi Giacomo,  I know this is an old post but I have this exact same issue but not sure of the correct syntax where I want to hide a text field if any of the 4 options below are selected in a lookup field.  It works when I only have one option as shown attached, but I also want to hide my text field if any of 4 possible options are selected from this lookup field i.e. if any of the 4 options below are selected, then hide my text field:

  • Data Entry Error
  • Diversion
  • Wrong Job
  • Wrong Customer Invoiced