Skip to main content
Participating Frequently
Jul 22, 2018 2:35 PM UTC
Question

How to make the word appear / disappear automatically?

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

try67
Community Expert
Community Expert
Jul 22, 2018 3:13 PM UTC

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

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

Translate
leafchanAuthor
Participating Frequently
Jul 23, 2018 12:21 AM UTC

Thank you for your reply.

Do I need to add the code below?

if.....else

event.rc = false

event.value=""

Thank you very much

Translate
try67
Community Expert
Community Expert
Jul 23, 2018 7:14 AM UTC

No. Use the code I provided.

Translate