Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

remove underlined textfield in javascript

Avatar

Level 5

Hi All.

I tried to remove underlined textfield dynamically. Code in javascript:

xfa.resolveNode("form1.page1.subForm.txtName.ui.#textEdit.border.corner.color").value = "255, 255, 255";

Also I tried like:

xfa.resolveNode("form1.page1.subForm.txtName.ui.#textEdit.border.corner").presence = "hidden";

but unfortunately unsuccessful. How to solve the problem?

Thanks.

3 Replies

Avatar

Level 10

Hi there,

simply remove corner, you must hide the border to hide the underline appearance of a text field.

Hope this work, enjoy!

Avatar

Level 5

HI Magus069. Thanks for replay.

My purpose to remove line in underlined TextField by condition. In one case it should be presented and other case hidden.

Thanks.

Avatar

Level 10

Like I said simply hide the border.

Set the if Statement with the condition if it should be visible or hidden and simply write

If this is not doing exactly what you expect, then I misunderstand what you are trying to do...

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now