How to hide a button option

  • 25 September 2017
  • 3 replies
  • 4 views

Badge +2

Have a head scratcher here.

So I have a choice field (rendered as a button) connected to a list column, which has 3 options.

S, U, N/A

Depending on a drop down field, I either show or hide the button.

If it's hidden, I want it to default to N/A so I have a placeholder in the list.

If it's visible, I want it to default to U and hide the N/A option.

Is this possible? It's been driving me insane for about a week now...


3 replies

Userlevel 5
Badge +14

to select one of choice option buttons try following

NWF$('#'+varChoice).find('input:radio[value="Option 2"]').click();‍‍

to hide one of choice option buttons try following

NWF$('#'+varChoice).find('input:radio[value="Option 2"]').parent().hide();‍‍

‌ render as button‌

Badge +2

You are a wonderful human being! Thank you very much! 

Userlevel 5
Badge +14

happy.pnghappy.pnghappy.png

Reply