Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

mockions
Level 1
Level 1

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!

1 Accepted Solution
mouslander
Correct answer by
Level 7
Level 7

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"

View solution in original post

3 Replies
mouslander
Correct answer by
Level 7
Level 7

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"

View solution in original post

mockions
Level 1
Level 1

Thank you for the response! It's working!

diannes29111334
Level 1
Level 1

Hi!..

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

for example

Name:___________

etc

etc

etc

Name: ____________

hope to hear from you.