Hi,
I have multiple subforms where some subforms are only required to fill depending on values in one of the subforms. I am trying to do a check before saving this with reference to subform field like this $x=('#field04.ts_name#'); but this does not work. Field reference in the main form works well.
Any suggestions on how to fix this.
Regards
nc07
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.
Subform Field reference in php
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Subform Field reference in php
You can access the fields in subforms with nuSubformObject()
https://wiki.nubuilder.cloud/ ... formObject
https://wiki.nubuilder.cloud/ ... formObject
Re: Subform Field reference in php
Hi Kevin,kev1n wrote:You can access the fields in subforms with nuSubformObject()
https://wiki.nubuilder.cloud/ ... formObject
Highly appreciate your reply, however, I couldn't get this working. i used the code like $z= nuSubformObject('field04.ts_name'); but it does not work for me. The field04 is the subform name and the ts_name is the actual subform field. Can you help me out with this, please.
Thanks
nc07