Hi,
Thank you for your query.
Do you need to get a field's value in JavaScript on another form?
If you mean to say you need to get value of a field on a different form within same entity, you just need to add same field on both forms.
For example, I have a custom field called new_xyz which I added on Contact form.
Now to access this value on a new Contact Form, you just need to add this field using following steps:
- Go to Advanced Settings -> Customization - Customize this System.
- Expand Entities -> <Entity Name> -> Forms.
- Open the desired form, and from the right hand side (Field Explorer), drag the desired field on the form.
- Save and Publish.
Now you can access new_xyz field's value (in JavaScript) on new form.
Also, if you do not need to show this field on new form, you can set it's visibly to false, this way Users won't see this field, but you can access it's value.