Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

zerozone110
Level 3
Level 3

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
dcidev
Correct answer by
Level 8
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
dcidev
Correct answer by
Level 8
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