Page 1 of 1

Subform Field reference in php

Posted: Fri Sep 06, 2019 6:26 am
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

Re: Subform Field reference in php

Posted: Fri Sep 06, 2019 7:01 am
by kev1n
You can access the fields in subforms with nuSubformObject()

https://wiki.nubuilder.cloud/ ... formObject

Re: Subform Field reference in php

Posted: Thu Sep 12, 2019 10:49 pm
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