DropDown changes background color with selected option


hi there!

 

i´m stuck dropdown need have red background if option tbd active (which default option) , have no backgrond if other option selected.

 

drop01.png

 

drop02.png

 

drop03.png

 

the red background red rectangle visible or hidden, i have tthis code in change event of dropdown:

 

if (this.rawvalue == "tbd"){     rectanglered2.presence = "visible"; }else{     rectanglered2.presence = "hidden"; } 

 

but thing event checks value when changed, if in tbd value , selec item 1, recntagle still visible, because @ moment selected item 1 value tbd,  so not working way need to.

 

anys ideas?

 

thanks!

you have use

if (xfa.event.newtext == "tbd"){ ... 

 

then works fine.

 

"xfa.event.newtext" takes dropdown value @ runtime.

 

hope, it's helpful,

mandy



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support