Export Value of a selected dropdown list choice


i have dropdown list 'commit selected values immediately'.  1 of items in list is:

 

item:            test

export value: test

 

when select item, validate event gives: event.value="this test"

 

how export value("test") instead?

actually, figured out myself.  in case else want's able this, place following in verification event:

 

var value;
var f=this.getfield("yourlistname");

for (var = 0; < f.numitems; i++) {
    if(event.value==f.getitemat(i,false)){
        value=f.getitemat(i,true);
        break;
        }
}
this.getfield("yourfieldname").value=value;



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

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

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

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