Hello! We are using the star rating on our Live Form and we are sending the data for display with the Live Visualizer. We have the star rating showing up in the Visualizer as a number value but we would like to show it as a star image utilizing the Font Awesome icons included with the Mandeeps software. So, if a 4-star rating is received, you see 4 out of 5 stars filled in. See my attachments for what I am talking about. Currently, we are just showing the number with a star image next to it as we were having trouble utilizing jQuery or even just HTML and CSS to generate this within Live Visualizer.
You can write code for showing star like below:
@if(Convert.ToInt32(@row["Star Rating"])==1)
{
<span>*</span>
}
else if(Convert.ToInt32(@row["Star Rating"])==2)
{
<span>**</span>
}
else if(Convert.ToInt32(@row["Star Rating"])==3)
{
<span>***</span>
}
else if(Convert.ToInt32(@row["Star Rating"])==4)
{
<span>****</span>
}
else if(Convert.ToInt32(@row["Star Rating"])==5)
{
<span>*****</span>
}
Also, we are having issues filtering the items by the status that shows in the Live Visualizer. It needs to only show reviews with a status of Approved and right now it shows our Pending and Rejected as well. This is not the filter that the admin can see (I can find that), this is the view for the general public where we want it filtered.
To show approved submissions, Please specify condition like below:
@foreach(dynamic row in Model.Form_Submissions)
{
if(Convert.ToInt32(row["StatusID"])==2){ //Where 2 is id of approved status, which you can check from LiveForms_Submission_Status table
//Your coment should be here
}
}