Skip to main content
1-Visitor
September 21, 2018
Question

Visibility of textbox and label.

  • September 21, 2018
  • 1 reply
  • 1213 views

Hi,

 

I have a drop down with a list of materials like 'Torque' , 'Barcode print' and 'others'. My requirement is, only on selection of torque my label and textbox has to be visible otherwise it has to be invisible. So i wrote a java script for this and gave selected row item from drop down as input to JS and triggered JS using selected row changed event of combo . But I am facing a difficulty where on choosing any item from combo the text box and label is getting visible and not becoming invisible.

 

How can I achieve this?

 

JS: 

if (name == 'Torque' && name != null && name != 'Visual WI' && name != 'Error Proofing' && name !=
'Data Collection' && name != 'Barcode Print' && name != 'Part Pick' && name != 'Others')

{
result = true;
}

else
{
result = false;
}

 

Thanks,

V Shalini.

1 reply

1-Visitor
September 21, 2018

Try this onto the expression widget ( boolean result):

 

(name=='Torque')

Support
October 15, 2018

Hi @svisveswaraiya_285988

 

If the response provided by Carles answered your question, please mark it as the Accepted Solution for the benefit of others who may have the same question.

 

Regards.

 

--Sharon