Page 1 of 1

reading the actual displayed value

Posted: Mon May 09, 2011 9:30 pm
by Fundi
Hi

If this line:
document.getElementById(prefix+'quote_id').value

Gets the value of the database field quote_id

how can one get the actual displayed number?
quote_id is displaying a number from a related table in a lookup field.

Thanks for any hints.
Fundi

Re: reading the actual displayed value

Posted: Tue May 10, 2011 12:03 am
by admin
Fundi

The answer you are after is .. document.getElementById('code' + prefix+'quote_id').value

Can I suggest you have a look at the html that sits behind a nuBuilder Form, for instance

to find the field holding 14961, search for 14961 in the html source and you'll get an idea of whats going on.
lup2.PNG
Steven