Reference Fields in a Section

Hi, 

Thank you for contacting us. 

 

When referencing fields in between various sections, there are a couple of things to keep in mind. I have listed below some common examples of how to reference fields in between other sections. But, if there is a particular field you are having trouble referencing on your form, please let us know and we'll be happy to help further. 

 

In the examples below, the arrows denote what field is being pulled into the other form. So, if the arrow is going from Field1, pointing to Field2; Field2 is using the value from Field1. 

 

When a field is inside a section, and you'd like to target another field inside the same section, you can use the name of the other field as you normally would, because they are in the same section. For example; 

 

If, you'd like to reference a field that is outside all other sections, and use it's value in a field that is in a section, you will need to use .Form​ first, to "look" to the rest of the form (outside the current section), then use the name of the field. For example; 

 

 

Conversely, if you're working in a field that is outside all sections, and want to use the value from a field inside a section, you'll reference the name of the section, then the name of the field inside the section. For example;

 

If you're working with a field inside a section and want to pull in the value from a field that is inside ​another section, you will need to use .Form​ then the name of the section the other field is in. For example;

 

 

 

If a field is inside a section that is inside another section, there are a couple ways to reference the field inside the "Top" level section. You can use .Form.NameOfTopSection.NameOfField​ for example; 

 

 

Or, you can use ParentSection.NameOfField​ for example; 

 

 

If you are working with a field inside a section, and need to reference a field inside a section that is within another section, you will use the same method mentioned before, but just add the name of the other section as well. For example;

 

Another thing to keep in mind is that Name fields and Address fields are kind of like pre-made sections with text boxes, drop down fields, and number fields. So, you can reference the fields inside ​them by treating the name of the field as a name of a section, then the name of the field within the field as the name of the field you are targeting. But, at this time, Name fields and Address fields cannot have their default values set from other fields on the form. 

 

An example of how this works is; if you'd like to use the first name from a name field as the default value for another field, and the name field is inside a section, you would target it like this:

 

 

If you'd like to reference the value from a lookup field, you can do this by first listing the name of the lookup field, then the name of the field on the referenced form. For example, if the name of the lookup field is Lookup Field and the name of the field on the referenced form is "Name"; 

 

 

If the lookup field is inside another section, you would list the name of the section first, the name of the lookup field, then the name of the field on the referenced form. ​If the field on the referenced form in the lookup field is inside a section on the other form, you would list the name of the lookup field, name of the section, then name of the field. 

Hope this helps! 

Thank you,

Please let me know if you have any other questions or if I can help with anything else!

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.