How do you auto-populate a text field based on entries in other text fields?

Avatar

Avatar

mockions

Avatar

mockions

mockions

20-03-2015

I would like to be able to have a text field that populates as "Complete" or "Incomplete" based on whether all the mandatory text fields have been filled out or not.

For example, if the "First Name," "Last Name," and "City" text fields are not filled out, the "completion status" text field will show "Incomplete" and once they are filled out, the "completion status" text field will turn into "Complete."

How would I do this using javascript? I've searched the web for a tutorial, but most of the results seem to be dropdown-centric.

Please point me in the right direction!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

mouslander

Avatar

mouslander

mouslander

21-03-2015

Try the script below. I put this on the calculate event for Field1

if(FirstName.rawValue == null || LastName.rawValue == null || City.rawValue == null){

Field1.rawValue = "Incomplete"

}

else

Field1.rawValue = "Complete"

Answers (2)

Answers (2)

Avatar

Avatar

diannes29111334

Avatar

diannes29111334

diannes29111334

27-07-2015

Hi!..

How do you Auto populate or like copy from first cell.

for example

Name:___________

etc

etc

etc

Name: ____________

hope to hear from you.

Avatar

Avatar

mockions

Avatar

mockions

mockions

23-03-2015

Thank you for the response! It's working!