On Submit: You are not authorized to perform this action
Posted: 13 November 2007 10:02 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  35
Joined  2007-11-01

Howdy,

Anyone have any ideas why I keep getting this error? (keep in mind this is my first FreeForms run and I may have missed something

{exp:weblog:entries weblog="propertyDetails" orderby="contemplatedDate" sort="desc"}
{exp
:freeform:form form_name="selectProperty" "return="shoppingCart/PPM_requestShoppingCart"}<li>

{propertyName}
{relatedSponsor}
{assetType}
{city}, {state}

<input type="
checkbox" name="{relatedSponsor}_{propertyName}" /><label>REQUEST PPM</label>

{/exp:weblog:entries}


<input type="
image" src="http://neednotsay.com/expressionEngine/images/uploads/request-submit.gif" class="submit" name="submit" value="submit"/>
{/exp:freeform:form}

Any assistance would be greatly appreciated!

Profile
 
 
Posted: 14 November 2007 07:41 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

Hello,

Can I see your page that is outputting this code?

 Signature 
Profile
 
 
Posted: 14 November 2007 07:57 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  35
Joined  2007-11-01

http://neednotsay.com/expressionEngine/index.php/propertyWatch/3_0_propertyWatch_cd/

<div class="ppm">
<
ul class="recent" id="hover">
<
li class="head">
<
div class="hover">
<
div class="price">
<
span>MINIMUN EQUITY<br />INVESTMENT</span>
</
div>
<
div class="price">
<
span>REMAINING EQUITY</span>
</
div>
<
div class="price">
<
span>OFFERING AMOUNT</span>
</
div>
<
div class="price">
<
span>CONTEMPLATED DATE</span>
</
div>
<
div class="price">
<
span>OFFERING DATE</span>
</
div>
</
div>
</
li>
{exp:weblog:entries weblog="propertyDetails" orderby="contemplatedDate" sort="desc"}{exp:freeform:form form_name="selectProperty" "return="shoppingCart/PPM_requestShoppingCart"}<li>
<a href="
#" class="image">
<img src="http://neednotsay.com/expressionEngine/propertyWatch/{propertyImage}" width="108" height="108" alt="" />
<
img class="invisible" src="http://neednotsay.com/expressionEngine/propertyWatch/{propertyImage}" width="216" height="216" alt="" />
</
a>
<
div class="hover">
<
div class="prop">
<
strong>{propertyName}</strong>
<
p>{relatedSponsor}<br />{assetType}<br />{city}{state}</p>
<
div class="check watch">
<
input type="checkbox" name="{relatedSponsor}_{propertyName}" />
<
label>REQUEST PPM</label>
</
div>
</
div>
<
div class="price">
<
span>${minEquityInvestment}</span>
</
div>
<
div class="price">
<
span>${remainingEquity}</span>
</
div>
<
div class="price">
<
span>${offeringAmount}</span>
</
div>
<
div class="price">
<
span>{contemplatedDate format="%n.%d.%Y"}</span>
</
div>
<
div class="price">
<
span>{offeringDate format="%n.%d.%Y"}</span>
</
div>
</
div>{/exp:weblog:entries}
</li>
</
ul>
<
input type="image" src="http://neednotsay.com/expressionEngine/images/uploads/request-submit.gif" class="submit" name="submit" value="submit"/>
</
div>{/exp:freeform:form}
</form>
</
div>

Profile
 
 
Posted: 14 November 2007 08:10 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

Wow, that’s pretty cool looking smile

When I try clicking the Button, nothing happens (just as what happened on my testing site with your code)

Do you see what it’s doing though?
The way you have it, the Freeform tags are tangling with the EE Entries tags…

Theoretically (and I say theoretically), you’d probably need to generate it like this to work:

{exp:freeform:form form_name="selectProperty" return="shoppingCart/PPM_requestShoppingCart"}
{exp
:weblog:entries weblog="{my_weblog}" sort="desc"}
{propertyName}
{relatedSponsor}
{assetType}
{city}
{state}
<input type="checkbox" name="{relatedSponsor}_{propertyName}" /><label>REQUEST PPM</label>
{/exp:weblog:entries}
<input type="image" src="http://neednotsay.com/expressionEngine/images/uploads/request-submit.gif" class="submit" name="submit" value="submit"/>
{/exp:freeform:form}

Notice how the entries parameters are set inside the Freeform code…
The only problem is it doesn’t seem to work that way, you could give it a try though.

 Signature 
Profile
 
 
Posted: 14 November 2007 08:53 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  35
Joined  2007-11-01

Pie man,

Thanx for the compliment.
As far as the button goes you wold have to logged in for that to work.

Hmm- If I go the route you have the properties don’t repeat with information from the weblog. (I’ll have to work on this - any suggestions)

Thanx,
Chris

Profile
 
 
Posted: 14 November 2007 08:57 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

Yeah, that’s the downside… but I think your current way will NOT work.

Although it makes perfect sense to have what you’re trying to do, an option.

I’ll investigate this a little further

 Signature 
Profile
 
 
Posted: 14 November 2007 11:29 AM   [ Ignore ]   [ # 6 ]
Jr. Member
RankRank
Total Posts:  35
Joined  2007-11-01

Pie Man,

Yes after some investigation it seems the form wants to wrap itself around each weblog than in-turn the submit button isn’t aware witch form to submit.

Any ideas? Have run across this before?

Chris

Profile
 
 
Posted: 14 November 2007 12:13 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

Alright, after talking to the Almighty, Wise Mitchell, there is a solution!

What you need to do is EMBED the EE Entries loop from another template into the Freeform loop… like this:

Page you want shown:

{exp:freeform:form form_name="selectProperty" return="shoppingCart/PPM_requestShoppingCart"}
{embed
="template_group/template"}
<input type="image" src="http://neednotsay.com/expressionEngine/images/uploads/request-submit.gif" class="submit" name="submit" value="submit"/>
{/exp:freeform:form}

Embedded page:

{exp:weblog:entries weblog="propertyDetails" orderby="contemplatedDate" sort="desc"}
{propertyName}
{relatedSponsor}
{assetType}
{city}
{state}

<input type="checkbox" name="ppm" value="{relatedSponsor}_{propertyName}" /><label>REQUEST PPM</label>
{/exp:weblog:entries}

IMPORTANT! Make sure you set your checkboxes as I have above… the {relatedSponsor}_{propertyName} would be the Value, not the Name… the Name would have to stay the same… in this case, I used ppm

Good luck!! smile

 Signature 
Profile
 
 
Posted: 14 November 2007 12:40 PM   [ Ignore ]   [ # 8 ]
Jr. Member
RankRank
Total Posts:  35
Joined  2007-11-01

Pie Man,

You rock! Thank you for the extra effort of tracking down the answer to this one.

But now that I have the data captured no details show up in the entries area of Freeform module rather just a notification.

Any pointers or tutorials on this?

Thanx,
Chris

Profile
 
 
Posted: 14 November 2007 12:46 PM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

You’re welcome smile

Have you created the fields in Freeform CP?
CP Home › Modules › Freeform › Manage Fields

 Signature 
Profile
 
 
Posted: 14 November 2007 12:59 PM   [ Ignore ]   [ # 10 ]
Jr. Member
RankRank
Total Posts:  35
Joined  2007-11-01

How do I go about naming the fields?

Profile
 
 
Posted: 14 November 2007 01:22 PM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

In the FreeForm Fields page in the CP:
CP Home › Modules › Freeform › Manage Fields

Click the Create a New Field button at the top right smile

From there, enter the Field Names exactly as your template has them. The Field Label is just a “friendly” name of the field.

 Signature 
Profile
 
 
Posted: 14 November 2007 01:41 PM   [ Ignore ]   [ # 12 ]
Jr. Member
RankRank
Total Posts:  35
Joined  2007-11-01

This freeform stuff is starting to gel - I’ll surely be the first in line to buy a pro version with full documentation.

So I got the field thing going but the funny thing is that the form will only submit the last check item on a page rather than all the checked items.
How do I set this up to receive multiple inputs?

Thanx,
Chris

Profile
 
 
Posted: 14 November 2007 01:49 PM   [ Ignore ]   [ # 13 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

Oh I’m very sorry cswenke!

Change the name (just in the template) to:

name="requestedPPM[]"

Notice the [ ]

That will allow the field to accept multiple values smile

Sorry again smile

 Signature 
Profile
 
 
Posted: 14 November 2007 01:54 PM   [ Ignore ]   [ # 14 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Yeah Pie Man!

 Signature 

Mitchell Kimbrough

Profile