x
 
Create New Page
 View Previous Changes    ( Last updated by m4thew )

SAEF with Fieldframe fields

If you have trouble getting Fieldframe fields to display in the proper order within the {custom_fields} loop, throw them in an {if} conditional…

<div class="form">
    
    
{exp:weblog:entry_form weblog="members" return="{all_segments}"}

    
<label>Contact Person Name <span class="required">*</span></label>
    <
input class="text" type="text" name="title" id="title" value="{title}" maxlength="100" /></p>

        
{custom_fields}
            
<label>{field_label} {if required}<span class="required">*</span>{/if}</label>

            
{field_instructions}
        
            {if textarea}
                
<textarea class="textarea" id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}">{field_data}</textarea>
            
{/if}

            {if textinput}
                
<input class="text" type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" />
            
{/if}
            
            {if 
"{field_name}" == "field_id_65"}
                {member_business_type}
            {
/if}
            
            {if 
"{field_name}" == "field_id_68"}
                {member_state}
            {
/if}
            
            {if 
"{field_name}" == "field_id_74"}
                {member_billing_cycle}
            {
/if}

            {if 
"{field_name}" == "field_id_71"}
                {member_url}
            {
/if}
            
            {if 
"{field_name}" == "field_id_75"}
                {member_payment_method}
            {
/if}

        {
/custom_fields}

    
<input type="submit" name="submit" value="Submit" class="submit" />

{/exp:weblog:entry_form}  

</div

You can find the id of a field by looking at the URL to edit the custom field (fieldframe field) in the EE CP.

Category:EE1

Categories: