Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for Show only | Search instead for Did you mean:/t5/acrobat-discussions/change-field-colour-depending-on-empty-or-completed-field/td-p/12876817 Apr 13, 2022 Apr 13, 2022
Copy link to clipboard
Hi - I have an editable PDF form, that I basically want to turn all the fields red if the boxes are empty, once they have been completed they turn back to white - note they are just free text boxes not based on any specific values.
Its just as a prompt to the user to complete the field.
Can you advise please? I have got close using code I have found online but can't seem to get it to work correctly.
Create PDFs , Edit and convert PDFs , JavaScript , PDF forms Community guidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
You have to change their values or clear the form for it to kick in.
15 Replies 15 Adobe Employee ,/t5/acrobat-discussions/change-field-colour-depending-on-empty-or-completed-field/m-p/12877105#M359113 Apr 13, 2022 Apr 13, 2022
Copy link to clipboard
Hope you are doing well and sorry to for the trouble.
Please open the PDF form in Acrobat Pro DC > Go to Tools > Prepare Form > Double click on the Form field to open the form field properties and Select 'Required' to make the field required.
It will force the user to fill in the selected form field. If the user attempts to submit the form while a required field is blank, an error message appears and the empty required form field is highlighted.