Skip to main content
Participating Frequently
July 22, 2018
Question

How to make the word appear / disappear automatically?

  • July 22, 2018
  • 1 reply
  • 523 views

Initially, there are three text field.

If I input any word or number in field A, for example

Finally, the word " - " will be automatically appeared in field B without any input.

Similarly, If data in Field A is deleted, the word "-" will be removed automatically.

How to make the relevant code in fillable PDF? Thank you very much!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 22, 2018

As the custom validation script of field A enter this code:

this.getField("B").value = (event.value=="") ? "" : "-";

leafchanAuthor
Participating Frequently
July 23, 2018

Thank you for your reply.

Do I need to add the code below?

if.....else

event.rc = false

event.value=""

Thank you very much

try67
Community Expert
Community Expert
July 23, 2018

No. Use the code I provided.