dynamically setting title based on entry data
Posted: 02 September 2010 02:34 AM   [ Ignore ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

I am trying to dynamically set the title of the entry based on the entry’s data. I have the parameter in there: title=”[your_custom_field] Submission” But when it’s submitted, it says I have not entered a title or url_title.

I am probably missing something, see anything glaring? Thanks.

{exp:safecracker 
        channel
="case_evaluations"
        
return="case-evaluation/form/ENTRY_ID" 
        
class="standard"
        
title="[first_name] [last_name] Case Evaluation Form"
}
 

        
<label class="desc required" for="first_name">Name</label>
        <
span>
            <
input name="first_name" type="text" class="field text fn" value="" size="8" tabindex="1" />
            <
label for="first_name">First</label>
        </
span>
        <
span>
            <
input name="last_name" type="text" class="field text ln" value="" size="14" tabindex="2" />
            <
label for="last_name">Last</label>
        </
span>

<
input class="submit-btn" type="submit" value="Begin" />

{/exp:safecracker} 
Profile
 
 
Posted: 02 September 2010 02:36 AM   [ Ignore ]   [ # 1 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

I posted in the wrong forum, can you move it? Thanks.

Profile
 
 
Posted: 02 September 2010 02:38 AM   [ Ignore ]   [ # 2 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Sorry, the docs are wrong. The parameter is dynamic_title not title.

Profile
 
 
Posted: 02 September 2010 02:41 AM   [ Ignore ]   [ # 3 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

That works perfect, thanks for the fast reply.

Profile