These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Javascript code to set the appearance underline for a textfield dynamically

sirisha725
Registered: Apr 13 2011
Posts: 6

Hi,
 
I am Adobe LiveCycle Designer user, I have an issue and hoping to get a solution from this forum.
 
Please find the details of my issue:
 
There is a table which adds dynamically and the information for five rows is hardcoded. Now the user wants to make the field underlined only in row 5. Can some one please let me know is there any javascript code to set the appearance of the field underline dynamically.
 
Kindly let me know if you need any more information.
 
Thanks in Advance,
 
Regards,
Sirisha,
India.

Thanks in Advance,

Regards,
Sirisha,
Adobe Livecycle Developer,
Hyderabad, Andhra Pradesh,
India.

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Look at enabling the 'Rich Text' format for the field. Note this option is only available for a text field.

George Kaiser

sirisha725
Registered: Apr 13 2011
Posts: 6
Hi George Kaiser,

Thank you for the reply.

I have tried enabling the Rich Text Format for the field, but I need a code or syntax in javascript through which we can make the field underline.

I have used the below way of formatting it:

1)Setting the field appearance as none in object field tab

2)Written the below code in script editor:

this.ui.resolveNode("#textEdit").border.resolveNode("edge[3]").presence = "hidden"
this.ui.resolveNode("#textEdit").border.resolveNode("edge[2]").presence = "visible"
this.ui.resolveNode("#textEdit").border.resolveNode("edge[1]").presence = "hidden"
this.ui.resolveNode("#textEdit").border.resolveNode("edge[0]").presence = "hidden"

3)Removing the tag in the xml source.Remarks:
It seems to be working now but the problem is if we change the appearance to some other and again rechange it to None it is not working.

Note: "I have tried enabling "rich text" format also, still it seems to be not working.

This above solution I have tried is not a permanent solution, as user will have access to only PDF it can work out.

Kindly let me know if you have any other solutions to solve the problem.

Thanks in adv,

Regards,
Sirisha.

Thanks in Advance,

Regards,
Sirisha,
Adobe Livecycle Developer,
Hyderabad, Andhra Pradesh,
India.

sirisha725
Registered: Apr 13 2011
Posts: 6
Hi,

Did anyone got a chance to look into this issue and found the solution?

Expecting some response on this.

Regards,
Sirisha.

Thanks in Advance,

Regards,
Sirisha,
Adobe Livecycle Developer,
Hyderabad, Andhra Pradesh,
India.