Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

Changing dropdown fill colour on selection.

$
0
0

I am using Livecycle ES3. I have a script that is changing the fill colour dependent on what is selected in the dropdown. This is working fine for me in Acrobat X Pro but doesn't seem to work in earlier versions.

 

Is there something else I can do that it works in all versions, the form is saved to be compatible to version 7 and my target version is set to version 9.0 or later.

 

This is my script on the 'exit' event (thank you Assure Dynamics):

 

var vName = this.somExpression;

var fieldObj = xfa.resolveNode(vName + ".ui.#choiceList.border.fill.color");

 

if (this.rawValue == "Ahead of Schedule") {

    fieldObj.value = "51,102,255";

}

else if (this.rawValue == "Progressing Well") {

    fieldObj.value = "0,196,0";

}

else if (this.rawValue == "Requires Attention") {

    fieldObj.value = "255,255,0";

}

else if (this.rawValue == "Requires Immediate Attention") {

    fieldObj.value = "255,0,0";

    }

else {

    fieldObj.value = "255,255,255";

}

 

Thanks for any help out there.


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>