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.

Tip... Adding new properties to the form object

  1. Jive Software
    Member

    Plop this little javascript function in your custom gf code:

    function SetFormProperty(name, value) {
     form[name] = value;
    }

    Example Usage

    <select id="form_type" name="form_type"  onchange="SetFormProperty('form_type', jQuery(this).val());"></select>
    
    <input type="text" id="form_name" class="fieldwidth-3" onkeyup="SetFormProperty('form_name', this.value);" size="35"/>
    Posted 6 years ago on Monday November 19, 2012 | Permalink
  2. Do you have an example of what this does online somewhere so we can see it in action? Thank you for sharing.

    Posted 6 years ago on Monday November 19, 2012 | Permalink