On "HTML" field, the option "Allow field to be populated dynamically" is not requesting the parameter to input the data passed. It appears to be a bug.
On "HTML" field, the option "Allow field to be populated dynamically" is not requesting the parameter to input the data passed. It appears to be a bug.
The option shouldn't be there, the HTML field can't be populated dynamically this way. It makes no sense to pass a lot of HTML data in the query string. The field can already be populated dynamically using a hook so the parameter isn't necessary. We will be removing this UI in the next release.
Yes, I agree. But how can I use a hook, documentation is not helping, can you provide me an example?
I need to inject some html content inside the form, before submit button. The reason is to provide the data from user profile, to let they check if they provide all the information I need in the register form and a link to redirect to the profile if they need to change something, this before they submit the form to participate to an offer.
Resolved, I could use this filter instead of try to manipulate the HTML box.
add_filter("gform_submit_button", "form_submit_button");
function form_submit_button($button){
return "<input type='submit' value='My new button' />";
}