retrieve field value Before Save

retrieve field value Before Save

Postby zgui » Tue May 02, 2017 8:25 pm

Hi everyone,
I'm at the end of a form (lr_session), and I need to know the value of one of the fields (ses_wp_ea_services_id).
Image
In my form's "Before Save", I have :
Code: Select all
$fieldName = 'ses_wp_ea_services_id';
$fieldValue = nuF($fieldName);
nuDisplayError($fieldValue);
return;

which gives me an output of "null"...

Any help very welcome =)
zgui
 
Posts: 2
Joined: Tue May 02, 2017 8:10 pm

Re: retrieve field value Before Save

Postby zgui » Wed May 03, 2017 3:10 am

ok I've found a way :
Code: Select all
nuDisplayError($nuHash['ses_wp_ea_services_id']);

works perfect =)
zgui
 
Posts: 2
Joined: Tue May 02, 2017 8:10 pm

Re: retrieve field value Before Save

Postby admin » Wed Jun 14, 2017 8:01 am

Excellent!
admin
Site Admin
 
Posts: 3079
Joined: Mon Jun 15, 2009 9:53 am


Return to Custom Code