PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

retrieve form fields to populate via a jquery preview

  1. Hi there,

    I was wondering if there is a simple method to retrieve the form fields from the $form array. More to the point make the fields of a specific form(by id) available to a function so I can loop through a foreach and populate the field with a presubmitted preview of the form content.

    basically

    function previewform() {
           //grab the form fields
    	global $form;
            //parse field entries from serialized form entries
    	parse_str($_SERVER['QUERY_STRING']);
    	foreach($entries as $entry) {
           //loop through getting label for each entry from $form and showing entry next to it from the querystring'.
    
           }
    	die();
    }
    

    I know this is crude but I hope it helps get across what I'm trying to do.

    Thanks in advance for the help guys!

    Posted 13 years ago on Thursday October 13, 2011 | Permalink
  2. i looked through the code and found this

    RGFormsModel::get_form_meta(THE ID);

    sorted

    Posted 13 years ago on Thursday October 13, 2011 | Permalink

This topic has been resolved and has been closed to new replies.