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.

Subform Field reference in php

Questions related to using nuBuilder Forte.
Post Reply
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Subform Field reference in php

Unread post by nc07 »

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
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Subform Field reference in php

Unread post by kev1n »

You can access the fields in subforms with nuSubformObject()

https://wiki.nubuilder.cloud/ ... formObject
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Re: Subform Field reference in php

Unread post by nc07 »

kev1n wrote:You can access the fields in subforms with nuSubformObject()

https://wiki.nubuilder.cloud/ ... formObject
Hi Kevin,

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
Post Reply