cancel
Showing results for 
Search instead for 
Did you mean: 

Script problem

Former Member
0 Kudos

Hi,all

I just want to modify the "change" event,and add some script to this:like change the border color,or change the font color.

But I don't know how to do this.

I add script like this:

Dat07.border.edge.presence = "visible"

Dat07.borderColor = "#FFFF00"

Dat07.fontColor = "#FFFF00"

But it just doesn't work.

So how should i modify the script?

Thank you.

Best Regards,

delma

Accepted Solutions (1)

Accepted Solutions (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi,

Do all these script are not working for you. As I have tried them and was able to change the presence of the border edge successfully and border color and font by providing in "R,G,B" format as following:

Dat07.borderColor = "10,120,40"
Dat07.fontColor = "30,120,40"

Regards,

Vaibhav Tiwari.

Former Member
0 Kudos

Hi,Vaibhav

Thank you~! My problem is solved.

Anyway,is there something help document to read about the script thing?

Best Regards

delma

vaibhav_tiwari
Contributor
0 Kudos

Hi delma,

You can download the document from the following link for formCalc script:

http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf

Moreover you can get a lot of script examples at the follwing link:

http://www.adobe.com/devnet/livecycle/designer_scripting_samples.html

There are a lot of examples of scripts in Life Cycle Designer help also. you can check there also.

Regards,

Vaibhav Tiwari.

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Delma,

Adding to Vaibhav's post these should be correct lines of code in your case:-

Dat07.borderColor = "255,255,0"
Dat07.fontColor = "255,255,0"

Chintan