Page 1 of 1
Choice Field Value
Posted: 11 Nov 2016
by Cloud.Ed
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();
Re: Choice Field Value
Posted: 14 Nov 2016
by Dmitry Kozlov
Hi,
Make sure that you're using the correct internal name of the field.
Re: Choice Field Value
Posted: 14 Nov 2016
by Cloud.Ed
The first 2 line return values just not the last. I have verified we are using the internal name. I have been confused before, just to make sure, I'm getting the value of a Choice Dropdown. Hope that makes sense.
Re: Choice Field Value
Posted: 15 Nov 2016
by Dmitry Kozlov
Could you send HTML-source of the parent form page to
support@spform.com?
Re: Choice Field Value
Posted: 16 Nov 2016
by Cloud.Ed
Sent in a .txt file.
Re: Choice Field Value
Posted: 17 Nov 2016
by Dmitry Kozlov
Hi,
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()