<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>dynamicForm jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67138/dynamicform-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>dynamicForm jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67138/dynamicform-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:29:02 GMT</pubDate><guid isPermaLink="false">39ee7135-986a-44f9-8231-1852446da965</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67138/dynamicform-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:29:02&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_dynamicForm" name="jQuery_fn_dynamicForm"&gt;&lt;/a&gt;jQuery.fn.dynamicForm&lt;/h3&gt;
&lt;p&gt;This plugin manages dynamically defined forms and their properties. New instances
of the dynamicForm plugin should not be manually created. Instances
are initialized when they dynamic configuration form is rendered by
the platform.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="getValues" name="getValues"&gt;&lt;/a&gt;getValues&lt;/h4&gt;
&lt;p&gt;Gets an object representing all of the property id / value pairs in the form.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// get values
var v = $(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;getValues&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="val" name="val"&gt;&lt;/a&gt;val&lt;/h4&gt;
&lt;p&gt;Gets or sets the value of the property with the specified id.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// get a value
var v = $(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;val&amp;#39;, &amp;#39;id_of_property&amp;#39;);

// set a value
$(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;val&amp;#39;, &amp;#39;id_of_property&amp;#39;, &amp;#39;new_value&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="dataType" name="dataType"&gt;&lt;/a&gt;dataType&lt;/h4&gt;
&lt;p&gt;Returns the string representation of the data type of the property specified by its identifier.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var dataType = $(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;dataType&amp;#39;, &amp;#39;id_of_property&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="hasValue" name="hasValue"&gt;&lt;/a&gt;hasValue&lt;/h4&gt;
&lt;p&gt;Returns true if the property specified by its identifier (or all properties specified by an array of identifiers)
has a value, otherwise false. For boolean properties, hasValue only returns true if the value of the boolean is
true.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var hasValue = $(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;hasValue&amp;#39;, &amp;#39;id_of_property&amp;#39;);

var allHaveValues = $(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;hasValue&amp;#39;, ['id_of_property', 'id_of_property2', 'id_of_property3']);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="onChange" name="onChange"&gt;&lt;/a&gt;onChange&lt;/h4&gt;
&lt;p&gt;Registers a function for notification when one or more properties are changed.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;onChange&amp;#39;, &amp;#39;id_of_property&amp;#39;, function(o) {
  alert(o.id + &amp;#39; changed to &amp;#39; + o.val);
});

$(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;onChange&amp;#39;, ['id_of_property', 'id_of_property2', 'id_of_property3'], function(o) {
  alert(o.id + &amp;#39; changed to &amp;#39; + o.val);
});
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="hide" name="hide"&gt;&lt;/a&gt;hide&lt;/h4&gt;
&lt;p&gt;Attempts to hide the visual representation of one or more properties. A property is hidden when any source or sources (identified by sourceId) request the property to be hidden.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;hide&amp;#39;, &amp;#39;id_of_property&amp;#39;, &amp;#39;id_of_source&amp;#39;);

$(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;hide&amp;#39;, ['id_of_property', 'id_of_property2', 'id_of_property3'], &amp;#39;id_of_source&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="show" name="show"&gt;&lt;/a&gt;show&lt;/h4&gt;
&lt;p&gt;Attempts to show the visual representation of one or more properties. A property is shown when no other sources (identified by sourceId) are hiding the property.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;show&amp;#39;, &amp;#39;id_of_property&amp;#39;, &amp;#39;id_of_source&amp;#39;);

$(&amp;#39;SELECTOR&amp;#39;).dynamicForm(&amp;#39;show&amp;#39;, ['id_of_property', 'id_of_property2', 'id_of_property3'], &amp;#39;id_of_source&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>