Hi All,
I am working on a sharepoint survey. Where I need one vote from users. I can give option not allow multiple entries. But If already voted person Click to respond to Survey it shows Sorry Error Page.
I don't want that page which confuse People. So what I want is like I will create a survey question and it will show the new form.aspx with Finish and cancel buttons. Using Css I will hide the cancel button and Keep Finish Button. Also I want to know how I can change the Finish text to Vote.
After that There will be a Presave function in that finish Button . In that button while user click it must check if entry available for user if available it must show js alert box that already submitted. If not it must allow the entry.
Please suggest what javascript code I must write?
I tried following things:
1) In presave function written a Jquery to get username
2) If it success I used a call query to check an entry equals to the Created By Column i.e Author
Here it is going and showing list item count If list item count greater than 1 it is showing alert. But for a new user when he is try to enter it is not inserting. In presave function I must keep return true or return false. I don't know.
Please suggest an idea.
Thanks all
Remember Past Challenge Future"