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
Have something to add?