Re: Form with DropDown should be shown in Frontent for a User

kayde <ahammenhws-gM/[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
Hi Justin,

exactly that was the point :-)

I always tried it only with the <ft:> tags, not with a HTML Form 

Here is what I have now:

<!----------------------------- 
ACTION    
------------------------------>
<ft:serverSideValidation />

    <ft:processform action="Select" exit="false">

        <cfdump var="#form.company#" />
        <cfset session.hds.company = #form.company# />
        <cfdump var="#session.hds#" />

    </ft:processform>

<!----------------------------- 
VIEW    
------------------------------>
    <cfoutput>
        <p>Welcome #session.dmProfile.firstname# 
#session.dmProfile.lastname#. </p>

        <ft:form>    
            <select name="company">
                <cfset stlocal.companies = #session.dmProfile.aCompany# />
                <cfloop from="1" to="#ArrayLen(stlocal.companies)#" 
index="i">
                  <cfset stlocal.company = 
application.fapi.getContentObject(objectid="#stlocal.companies[i]#", 
typename="company") />
                  <option value="#stlocal.company.objectid#" 
selected="#session.hds.company#">#stlocal.company.companyname#</option>
                </cfloop>
            </select>
            <ft:button value="Select" />
        </ft:form>            
        
    </cfoutput>

Thanks so much,
Kay

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.