function get_tags() { $target_id = FrmAppHelper::get_param('target_id', 'content'); FrmProFieldsHelper::get_shortcode_select($_POST['form_id'], $target_id); die; }
<tr class="form-field hide_dyncontent"> <th valign="top" scope="row"><?php _e('Dynamic Content', 'formidable'); ?> <img src="<?php echo FRM_IMAGES_URL; ?> /tooltip.png" alt="?" class="frm_help" title="<?php printf(__('The HTML for the entry on the dynamic page. This content will NOT be repeated, and will only show when the %1$s is clicked.', 'formidable'), '[detaillink]'); ?> " /></th> <td valign="top"> <div id="dyncontent_fields"> <?php if (is_numeric($values['form_id'])) { FrmProFieldsHelper::get_shortcode_select($values['form_id'], 'dyncontent'); } ?> </div> <?php if (function_exists('wp_editor')) { wp_editor($values['dyncontent'], 'dyncontent'); } else { ?> <textarea id="dyncontent" name="dyncontent" rows="15" style="width:98%"><?php echo FrmAppHelper::esc_textarea($values['dyncontent']); ?> </textarea> <?php } ?>
public static function populate_calc_dropdown() { if (isset($_POST['form_id']) and isset($_POST['field_id'])) { echo FrmProFieldsHelper::get_shortcode_select($_POST['form_id'], 'frm_calc_' . $_POST['field_id'], 'calc'); } die; }
<input type="text" name="options[success_url]" id="success_url" value="<?php echo esc_attr($values['success_url']); ?> " size="55"></td> </tr> <tr class="success_action_message_box success_action_box" <?php echo $values['success_action'] == 'page' ? 'style="display:none;"' : ''; ?> ><td valign="top"><label><?php _e('Confirmation Message', 'formidable'); ?> </label></td> <td><?php if ($frmpro_is_installed and isset($values['id'])) { FrmProFieldsHelper::get_shortcode_select($values['id'], 'success_msg'); echo '<br/>'; } ?> <textarea id="success_msg" name="options[success_msg]" cols="50" rows="4" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['success_msg']); ?> </textarea> <br/> <div class="frm_show_form_opt" <?php echo $values['success_action'] == 'redirect' ? 'style="display:none;"' : ''; ?> > <input type="checkbox" name="options[show_form]" id="show_form" value="1" <?php checked($values['show_form'], 1); ?> /> <label for="show_form"><?php
?> <br/> <input type="text" name="options[ar_email_subject]" id="ar_email_subject" size="55" value="<?php echo esc_attr($values['ar_email_subject']); ?> " style="width:98%"/></td> </tr> <tr valign="top" class="hide_ar"> <td><label><?php _e('Message', 'formidable'); ?> </label></td> <td><?php if (isset($values['id'])) { FrmProFieldsHelper::get_shortcode_select($values['id'], 'ar_email_message', 'email'); } ?> <br/> <textarea name="options[ar_email_message]" id="ar_email_message" cols="50" rows="5" style="width:98%"><?php echo FrmAppHelper::esc_textarea($values['ar_email_message']); ?> </textarea> </td> </tr> <tr valign="top" class="hide_ar"> <td><label><?php _e('Email Format', 'formidable'); ?> </label></td>
',this.checked,true,'#')" /> <?php _e('Calculate the default value for this field', 'formidable'); ?> <div id="frm_calc_opts<?php echo $field['id']; ?> " <?php if (!$field['use_calc']) { echo 'style="display:none"'; } ?> > <?php FrmProFieldsHelper::get_shortcode_select($field['form_id'], 'frm_calc_' . $field['id'], 'field_opt'); ?> <br/> <input type="text" value="<?php echo esc_attr($field['calc']); ?> " id="frm_calc_<?php echo $field['id']; ?> " name="field_options[calc_<?php echo $field['id']; ?> ]" class="frm_long_input"/> </div> </td> </tr>
public static function populate_calc_dropdown() { check_ajax_referer('frm_ajax', 'nonce'); if (isset($_POST['form_id']) && isset($_POST['field_id'])) { echo FrmProFieldsHelper::get_shortcode_select(sanitize_text_field($_POST['form_id']), 'frm_calc_' . sanitize_text_field($_POST['field_id']), 'calc'); } wp_die(); }