I want to populate a form field with current post custom field that contains email address. I want to do it via template when embedding a form. Form is always the same, just this field needs to be populated in order to send enquiry directly to that email.
I'm using this chunk of code:
$owneremail = '\'owneremail\'=>\''.$o_email.'\''; echo gravity_form(1, false, false, array($owneremail), '', false);
echoing $owneremail gives 'owneremail'=>'email@example.com' which should be fine according to your docs.
Form has a field that has checkbox ticked to populate dynamically with value owneremail.
And it doesn't get filled out.
You can see the form here: http://holidaysincroatia.hr/summer/accommodation/apartmani-nije-mi-dobro/#cnt-form