Using the latest version, I have a problem using nuCurrentRow() in an onchange event on a select object.
The value returned doesn't correspond to the row being changed.
For example, I have a subform with a text object and a select object. If I put "alert(nuCurrentRow());" as the onchange or onclick event then the text object event works as expected but the select object event just returns the value of the text event (does that make sense?)
I should add this used to work in previous versions.
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
nuCurrentRow() Topic is solved
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 times
- Contact:
Re: nuCurrentRow()
Hi,
Try the following:
Replace
with
in nuform.js and then log in again.
Try the following:
Replace
Code: Select all
function nuSelectOnFocus(e) {
const $field = $(e.target);
$field.attr('data-nu-org-value', $field.val());
}
Code: Select all
function nuSelectOnFocus(e) {
const $field = $(e.target);
$field.attr('data-nu-org-value', $field.val());
nuLookupFocus(e);
}