Choice Field Value
Here is my script to get data from the parent form. Every item but the "State" works. The state field in the parent is a single selection choice dropdown. We get the "Undifined".
var lcAddress = window.top.fd.field('Street_x0020_Address_x0020_1').value();
var lcCity = window.top.fd.field('City').value();
var lcState = window.top.fd.field('State').value();
var lcAddress = window.top.fd.field('Street_x0020_Address_x0020_1').value();
var lcCity = window.top.fd.field('City').value();
var lcState = window.top.fd.field('State').value();
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Make sure that you're using the correct internal name of the field.
Make sure that you're using the correct internal name of the field.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Could you send HTML-source of the parent form page to support@spform.com?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
As I can see it's a display form. So, please, try this code:
As I can see it's a display form. So, please, try this code:
Code: Select all
window.top.fd.field('State').control()._el().text()
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests