Subform Field reference in php

Questions related to using nuBuilder Forte.

Subform Field reference in php

Postby nc07 » Fri Sep 06, 2019 1:56 pm

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
nc07
 
Posts: 21
Joined: Tue Jun 04, 2019 11:35 am

Re: Subform Field reference in php

Postby kev1n » Fri Sep 06, 2019 2:31 pm

You can access the fields in subforms with nuSubformObject()

https://wiki.nubuilder.net/nubuilderfor ... formObject
kev1n
 
Posts: 244
Joined: Mon Oct 15, 2018 2:13 am

Re: Subform Field reference in php

Postby nc07 » Fri Sep 13, 2019 6:19 am

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

https://wiki.nubuilder.net/nubuilderfor ... 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
nc07
 
Posts: 21
Joined: Tue Jun 04, 2019 11:35 am


Return to General