A name is required to submit ratings. 
Posted: 21 July 2007 10:59 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2007-07-15

I’m getting the error: “A name is required to submit ratings.” How can I turn that requirement off? I’d like to be able to allow site visitors to rate an item without having to be logged in or submit their name.

Here’s the code I’m using:

{exp:rating:form require_membership = “no” entry_id="{entry_id}" form_name="rating"}
<label for="rating">Your Rating</label>
<select name="rating">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<input type="submit" name="submit" value="Submit!" />
{/exp:rating:form}

Profile
 
 
Posted: 21 July 2007 11:05 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  702
Joined  2004-03-30

That’s a requirement that we carried over from the comment module. You can override it by providing a hidden name field with some value in it. That value will be saved to the database, but if you never call it back up in a template it won’t matter.

I plan to remove that in a later version.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 23 July 2007 06:10 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2007-07-15

thanks-that worked!

Profile