Skip to main content
Nintex Community Menu Bar

How do you conditionally hide a button?

  • January 16, 2018
  • 4 replies
  • 23 views

Forum|alt.badge.img+3

I cannot seem to conditionally hide a button on a form (or on the ribbon) based on the value of a SharePoint list property?  I tried "expression" in the drop downs in button configuration but they seem to have no affect. (If I specify "No" in the same drop downs, it does work, so I think I'm changing the right configuration option).  I can hide the button using a form rule (using the same syntax as I tried in "expression"), but the form rule does not seem to control the ribbon (button function is still visible and active on the ribbon).

4 replies

Forum|alt.badge.img+14
  • Scholar
  • January 16, 2018

I tried "expression" in the drop downs in button configuration but they seem to have no affect.

can you post more details what expression(s) have you tested and problems have you experienced?

this should work.


Forum|alt.badge.img+3
  • Author
  • January 16, 2018

This is the most basic test I could think of. Simply showing or hiding a button based on the value of one, numeric property of the current item in a SharePoint list. I must be overlooking something simple…. I can hide the button on the form with the same simple expression (just testing for “!=” vs. “==” since the rule hides and the button config makes it visible). I could just use the rule, but that does not hide the ribbon function. The ribbon config doesn’t seem to work at all (unless I specify “No”, which does work).

Thanks,

Ron Pillsbury

Business Systems Analyst

Goodwill Industries of Northwest NC

2701 University Parkway, Winston-Salem NC 27105

T| 336.724.3625 x1333 C| 336.749.8009

rpillsbury@goodwillnwnc.org<mailto:rpillsbury@goodwillnwnc.org>


Forum|alt.badge.img+14
  • Scholar
  • January 16, 2018

use appearance expression like

fn-Equals(HideCancelButton,0)

== is javascript operator. it works in rules, calculation and other client side code since browsers can interpret it.

appearance expression is, however, server side evaluated (likely) by some nintex engine internally, so you have to use inline functions.


Forum|alt.badge.img+3
  • Author
  • January 17, 2018

?That worked great! Simple solution... Thanks so much - I marked this as "correct answer" on Nintex Community.