Skip to main content
Participant
Apr 6, 2017 4:20 PM UTC
Answered

Can i create a new field that copies the data from a drop down field - dependant on a check box button?

I have a field "Representatives" that has 10 names in drop down - - i want the name chosen on one form to copy onto another form - IF a check box button is checked off

is this possible ?

Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Apr 6, 2017 5:40 PM UTC

Sure. Use this code as the custom calculation script of the target field (adjust the name of the check-box field, of course):

event.value = (this.getField("Checkbox1").value=="Off") ? "" : this.getField("Representatives").value;

2 replies

Participant
Apr 6, 2017 7:58 PM UTC

thank you !  success !!

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Apr 6, 2017 5:40 PM UTC

Sure. Use this code as the custom calculation script of the target field (adjust the name of the check-box field, of course):

event.value = (this.getField("Checkbox1").value=="Off") ? "" : this.getField("Representatives").value;

Translate