Status
Posted: 28 June 2009 07:21 AM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2009-06-27

How I can make that the default status are Closed? I use the form as ad and the “post” must be verified from the administrator before he reach the status Open.

The page “input” code:

{exp:freeform:form form_id="freeform_form" return="http//domena.com" onsubmit="[removed]poptastic('http://domena.com/hvala.html');" required="name|email|conntactp|subject|message"  template="default_template"}

    
<div class="contactfield"><label for="name">Ime:</label> <span class="requiredfield">(*obavezno polje)</span><br />
    <
input type="text" class="required validate-alpha" id="name" name="name" size="40" /> 
    </
div>

    <
div class="contactfield"><label for="email">E-mail:</label> <span class="requiredfield">(*obavezno polje)</span><br />
    <
input type="text" class="required validate-email" id="email" name="email"  size="40" />
    </
div>    

    <
div class="contactfield"><label for="conntactp">Kontakt podatci:</label> <span class="requiredfield">(*obavezno polje)</span><br />
    <
input type="text" class="required" name="conntactp"  id="conntactp" size="40" />
    </
div>

    <
div class="contactfield"><label for="subject">Naslov oglasa:</label> <span class="requiredfield">(*obavezno polje)</span><br />
    <
input type="text" class="required" name="subject"  id="subject" size="40" />
    </
div>

    <
div class="contactfield"><label for="message">Oglas:</label> <span class="requiredfield">(*obavezno polje)</span><br />
    <
textarea class="required" name="message" id="message" rows="10" cols="60"></textarea>
    </
div>

    <
div class="contactfield">
    <
input type="submit" name="Submit" value="PoĊĦalji" class="submit" />
    </
div>

{/exp:freeform:form} 

Code of the page wher are showinh the verifed ads:

{exp:freeform:entries form_name="freeform_form" status="open" orderby="entry_date" sort="asc" limit="20"
<br/>
<
b>Oglas predao:</b{name} {entry_date format="%M %d, %Y"}<br/>
<
br/>
<
b>Kontakt:</b{conntactp}<br/>
<
br/>
<
b>Naslov oglasa:</b{subject}<br/>
<
br/>
<
i><b>Oglas:</b></i> <br/>{message} <br/>
<
br/>
<
div class="crta"></div>
{/exp:freeform:entries} 
Profile
 
 
Posted: 29 June 2009 07:34 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8290
Joined  2006-10-18

Hi n00p,

You just need to add this parameter to your Freeform:Form loop smile

status="closed" 
 Signature 
Profile