Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Car Insurance Confirmation
- add_filter('gform_pre_render_3','populate_html'); //only populateing html for form id 3 - Car Insurance
- function populate_html($form) {
- foreach($form["fields"] as &$field) {
- if($field['id'] == 91):
- $field['content'] = '<p>Please view your details and confirm your quotation by submitting the form</p>';
- $field['content'] .= '<ul>';
- foreach($form['fields'] as &$field){
- $field['content'] .= '<li>';
- if($field['id']!=91) {
- $field['content'] .= $field['label'];
- }
- $field['content'] .= '</li>';
- }
- $field['content'] .= '</ul>';
- endif;
- }
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement