Expand my Community achievements bar.

SOLVED

How to get a Dropdown Selection to Populate Another Field with Nothing

Avatar

Former Community Member

Hi,

I have a dropdown menu that populates another field depending on what is selected (as shown here where Admin Errors populates the next field with 6735-10-01).

Capture-1.JPG

However, there are 3 items in the dropdown list that I do not want to populate the other field with (basically it needs to stay blank when any of those 3 items are selected, unlike how it returns the zero in the example below). I'm just not sure what to put in for the bound values to make it blank.

Capture-2.JPG

Please advise.

Regards,

ZeroZone

1 Accepted Solution

Avatar

Correct answer by
Level 8

I'm not sure what your code looks like or where it is but you'll need to add a conditional statement like:

if (DropDown.rawValue=="0" || DropDown.rawValue=="1" /*|| etc, etc,*/)

     TextField.rawValue=null;

else

     TextField.rawValue=DropDown.rawValue;

Kyle

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

I'm not sure what your code looks like or where it is but you'll need to add a conditional statement like:

if (DropDown.rawValue=="0" || DropDown.rawValue=="1" /*|| etc, etc,*/)

     TextField.rawValue=null;

else

     TextField.rawValue=DropDown.rawValue;

Kyle