Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Conditional formatting (colour) lost when form is saved and reopened?

$
0
0

Hi All

 

This one has got me confused! I have set drop downs to change color depending on the selection using the following code:

 

 

if ($.boundItem(xfa.event.newText) == "1") {

  this.resolveNode("$").ui.oneOfChild.border.fill.color.value = "153, 204, 0";

}

if ($.boundItem(xfa.event.newText) == "2") {

  this.resolveNode("$").ui.oneOfChild.border.fill.color.value = "255, 153, 0";

 

 

etc

 

I have this in the 'Change' event and the 'Layout Ready' event, I have also tried it in the 'Initialize' event but with no success. The issue is this: the colour changes fine as the user fills in the form however is lost when they save and reopen (the selection values are fine just the color coding is lost)

 

BTW I am saving the PDF with 'Extended Features' as I thought maybe this could be a 'licence' related issue with Adobe Reader

 

Does any one have any idea of where to look to solve my problem please?

 

Many thanks

 

Ellis


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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