ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker Form Not Showing

September 10, 2012 2:46pm

Subscribe [2]
  • #1 / Sep 10, 2012 2:46pm

    ajtroxell

    1 posts

    I am implementing a Safecracker form into a template that will eventually allow only logged in members to submit the form.
    Here is the code for the page template:

    {exp:channel:entries channel="pages" limit="1" disable="{snpt_disable_except_custom_fields}"}
    
    {if no_results}{redirect="404"}{/if}
    {if segment_1=="default"}{redirect="404"}{/if}
    
    {embed="includes/_header" entry_id="{entry_id}" title="{if page_alt_title}{page_alt_title}{if:else}{title}{/if}"}
         <section class="page account">
          <div class="container">
           <div class="row">
            <div class="span12">
             <h1>Account</h1>
            </div>
           </div>
           <div class="row">
            <div class="span12">
             <div class="row">
              <div class="span6">
               {exp:member:custom_profile_data}<strong>{member_fist_name} {member_last_name}</strong>{/exp:member:custom_profile_data}
    
               {email}
              </div>
              <div class="span6 alignright">
               {exp:member:custom_profile_data}
               <strong>{member_organization_name}</strong>
    
               {member_mailing_address}
    
               {member_city} {member_state}, {member_zip}{/exp:member:custom_profile_data}
              </div>
             </div>
            <h2>Recent Activity</h2>
    <p>         <table class="table table-striped table-bordered table-condensed"><br />
              <thead><br />
               <tr><br />
             <th>Date</th><br />
                  <th>Reason</th><br />
                  <th>Video</th><br />
               </tr><br />
             </thead><br />
             <tbody><br />
              <tr><br />
               {embed="includes/_get-account-form" entry_id="{entry_id}"}<br />
              </tr><br />
               <tr><br />
                  <td>August 12, 2012</td><br />
                  <td>David Spade injured while not acting.</td><br />
                  <td>Viewed</td><br />
               </tr><br />
             </tbody><br />
             </table><br />
             <a href="http://history.php" class="btn btn-large btn-warning alignright">View Archive</a><br />
            </div><br />
           </div><br />
          </div><br />
      </section><br />
     </div><br />
    {embed="includes/_footer" entry_id="{entry_id}"}<br />
    {/exp:channel:entries}

    The _get-account-form is where the safecracker form is at, and it looks like so:

    
    
    

    No errors show on my page, but yet no form does either. Any ideas where I am messing up?

  • #2 / Sep 11, 2012 8:10am

    the3mus1can

    426 posts

    Are you logged in when trying to access the form?  And if you are editing an entry I would pass the entry_id to the safecracker tag.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases