Chris_Ben
Automation Master
Automation Master

Displaying a field based on a choice field using Nintex Mobile

Jump to solution

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

Reply
9 Replies
Not applicable

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

Hi Chris,

You may need to verify whats the value present in the 'productChoices' field in the Nintex mobile form. To do this,

1. Add a calculated field in the form

2. Connect this calculated field to the 'productChoices'

3. Publish the form

4. Now open the form and select the values. You should see calculated fields showing the selected values.

5. Based on the outcome you can tweak your rule condition

Thanks,

Nidish

Reply
Chris_Ben
Automation Master
Automation Master

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

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

Reply
Not applicable

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

Hi Chris Ben

I just wanted to thank you for sharing your formula if: !contains(productChoices, 'other')

This has just solved my problem when I was trying to hide a particular item on my form using rules and a list lookup.

Karen

Reply
Chris_Ben
Automation Master
Automation Master

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

Glad it helped Karen

Reply
kapilkjoshi
Automation Master
Automation Master

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

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.

Reply
Chris_Ben
Automation Master
Automation Master

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

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.

0 Kudos
Reply
jackgelo
Automation Master
Automation Master

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

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

View solution in original post

Reply
Chris_Ben
Automation Master
Automation Master

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

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?

Reply
emha
Automation Master
Automation Master

Re: Displaying a field based on a choice field using Nintex Mobile

Jump to solution

Andrew posted short blog on the topic as well  

Reply