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
BedrockMission!

Learn More

View all

Sign in to view all badges

Problem with drop down list

Avatar

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
lpianwi
Level 2

10-06-2013

 

Good afternoon all,

I am having problem with the following code. I have 3 items in a drop down list, which should only allows custom entry if only "other" which is the item values of 3 is selected from the drop down. The code works okay for every other  items, and will clear the drop down list, but does not allow the user to enter/type in other values. I need it to allow the user to be able to enter other value if item 3 is selected.

Please I need help with the code below,

On Exit event;

 

if (DropDownList1.rawValue=="1"){

DropDownList1.rawValue="g";

}

else if (DropDownList1.rawValue="2"){

    DropDownList1.rawValue="p"

}

else if (DropDownList1.rawValue=="3"){

   DropDownList1.rawValue=null;

  xfa.host.setFocus(DropDownList1);

}

Thanks

v/r

Tammy

Replies

Avatar

Avatar
Validate 1
Level 5
whyisthisme
Level 5

Likes

41 likes

Total Posts

324 posts

Correct Reply

59 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 5
whyisthisme
Level 5

Likes

41 likes

Total Posts

324 posts

Correct Reply

59 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
whyisthisme
Level 5

10-06-2013

try this:

if (DropDownList1.rawValue==1){

DropDownList1.rawValue="g";

}

else if (DropDownList1.rawValue==2){

    DropDownList1.rawValue="p";

}

else if (DropDownList1.rawValue==3){

   DropDownList1.rawValue="";

   DropDownList1.resolveNode("ui.#choiceList").textEntry = "1";

  xfa.host.setFocus("DropDownList1");

}

Avatar

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
lpianwi
Level 2

11-06-2013

Thanks a lot.