I can't disable subform lookup objects beyond the first row for my subforms.
i.e nuDisable('sob_rota000tcr_employee_id') works, but nuDisable('sob_rota001tcr_employee_id') doesn't.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Disable Subform Lookups
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Disable Subform Lookups
For some reason, the attribute data-nu-type is empty for all lookups beyond the first row , that's why nuDisable() doesn't recognise the lookup object.
Try this fix:
Replace this line:
with
Log in again after that change.
Try this fix:
Replace this line:
Code: Select all
.attr('data-nu-type', w.objects[i].type)
Code: Select all
.attr('data-nu-type', objectType)
-
- Posts: 153
- Joined: Mon Dec 05, 2011 12:23 pm
- Location: Newton Abbot, UK
- Has thanked: 1 time
- Been thanked: 1 time
Re: Disable Subform Lookups
Thanks for the quick response - lookups now disabling on all rows (where required).
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact: