Skip to content

Instantly share code, notes, and snippets.

@stphnwlkr
Created June 17, 2017 11:58
Show Gist options
  • Save stphnwlkr/1e00536e03e74683c4b6b6f6e498e739 to your computer and use it in GitHub Desktop.
Save stphnwlkr/1e00536e03e74683c4b6b6f6e498e739 to your computer and use it in GitHub Desktop.
<cfset org = application.jobs.getOrgList()>
<cfset orglist = org.CodeList >
<cfoutput>
<form>
<label for="org_list">Organizations</label>
<select name="org_list">
<cfloop array="#orglist#" index="occ">
<cfset orgData = occ.ValidValue>
<cfloop array="#orgData#" index="data">
<cfif data.isDisabled eq 'no' and len(trim(data.code)) eq 2 >
<option value="#data.Code#">#data.Code# - #data.Value#</option>
</cfif>
</cfloop>
</cfloop>
</select>
</form>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment