You can pass different values to a new [[Level 1 Entity|Level 1 record ]] using parametes[[parameter]]s.
==Parameter List==
* ''defaultownerid'' - Passes owner ID
* ''efaultstatusiddefaultpersonid'' - Passes person ID* ''defaultstatusid'' - Passes status ID (This only works if the record does ''not'' exist. Allow to Set permissions apply.)
* ''companyid'' - Passes Company ID
* ''opportunitytypeid'' - Passes Type ID
* ''branchid'' - Passes Branch ID
* ''appid'' - Passes UTA ID
* ''providertoken'' - Links new record to UTA using Provider/Consumer
* ''initnew'' - Creates the L1 with values saved, and linkages for C/P (initnew=1)
* ''versionid'' - specifies the version to be used when creating the record.
==Use Example==
Create a read only field on contacts with the following syntax:
<pre style="white-space: -o-pre-wrap; word-wrap: break-word;">Note: You can create a system variable that has the template IDs and names, that would replace the hard -coded combo box below.</pre><pre style="white-space: -o-pre-wrap; word-wrap: break-word;"><select id="opportunitytypeid" class="Large" name="opportunitytypeid"><option value="0">--Select One--</option><option value="11608">Beginning Years</option><option value="11607">Healthy Active Children</option><option value="11603">Diabetes</option>
<select class="Large" name="opportunitytypeid" id="opportunitytypeid">
<option value="0">--Select One--</option>
<option value="11608">Beginning Years</option>
<option value="11607">Healthy Active Children</option>
<option value="11603">Diabetes</option>
</select>
<script>// <![CDATA[
function createForm(){
var oppID=document.getElementById('opportunitytypeid').value;
parent.location.href='/Apps/app_editopportunity.jsp?appid=@system.appID@&nextlevel=1&opportunityid=0&companyid=@companyid@&defaultownerid=@userid@&opportunitytypeid='+oppID;
}
// ]]></script> <input type=button class="Button onclick" type="createForm()button" value="Create Form"/></pre>
<pre style="white-space: -o-pre-wrap; word-wrap: break-word;">Token Syntax for &providertoken:
PROVIDER_ID-PROVIDER_UTAID-PROVIDER_ROLEID-PROVIDER_LEVEL
Example:
&providertoken=@opportunityid@-@system.PMID@-@system.GMSRoleID@-1
</pre>
==See Also==
* [[Passing_Values_Using_ParametersPassing Values Using Parameters]]* [[System Variables]] [[Category:Variables]]