How to change the color of the field to gray when other form field is filled.

New Here ,
Aug 22, 2022 Aug 22, 2022

Copy link to clipboard

Copied

Halo to whoever can help.

 

Sorry for my bad English writing. I am neither native in English nor good at javascript.

 

I just have learned how to make the form field colored in gray if it is blank with the below script.

⇓⇓

event.target.fillColor = (event.value=="" || event.value=="BLANK") ? color.gray : color.white;

 

And now I want to know how I can make the B field colored in gray if the A field has input with the answer I'm looking for and also if the B field is blank. Below is the script I tried but it did not work.

 

var user = this.getField("使用者本拠地").Stringvalue;

user.fillColor = (user.value=="             他") ? color.gray : color.white;

 

Thanks in advance for your help!

 

Nakamoto

 

 

TOPICS
Create PDFs , How to , JavaScript , PDF forms

Views

3

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation