Problems adding items to list on anonymous site.

Jul 24, 2014 at 2:29 PM
Hi All,

I've inherited some work done at a client site using this tool, I have no experience of it myself.

Essentially the solution is for booking courses, and those bookings are list entries. The public site is anonymous, but the web app is extended as the edit site for those that manage it. This uses Windows auth, and the booking works fine, but when accessed via the anonymous site, the credentials prompt appears.

I understand about how to enable a list to grant Add Items permission for anonymous users, and have used this other places with Infopath without issue, but in this scenario it isn't working. I have also tried turning off ViewFormPagesLockdown, but to no avail.

Can anyone offer any suggestions as to how this can be overcome? If more details are needed, please ask - I appreciate I might not have covered everything.

Thanks,

Rich.
Coordinator
Aug 2, 2014 at 6:13 AM
Rich:

How are you using SPServices here? Can you show the relevant code?

Anonymous writes don't work to lists with the SOAP Web Services, only reads.

M.
Aug 6, 2014 at 2:22 PM
Hi Mark,

Thanks for replying. The segment of code that writes to the list is below. If you need to see the entire script file it's here:

http://1drv.ms/1sc0uD9

Thanks,

Rich.

// addBooking function - passes the data from the form to the list
    function addBooking(courseName,courseDate,startTime,endTime,venue,forename,surname,addr1,addr2,town,county,postCode,tel1,tel2,email,gpSurgery,caredName,caredAddr,caredTransportAss,caredCareAss,learnerNeeds,dietaryNeeds,accessNeeds,otherDetails) {

        $().SPServices({
            operation: "UpdateListItems",
            async: false,
            batchCmd: "New",
            listName: "Applications",
            valuepairs: [["Title","(no title)"],
                         ["Course",courseName],
                         ["Course_x0020_Date",courseDate],
                         ["Times",startTime],
                         ["Finish_x0020_time",endTime],
                         ["Venue",venue],
                         ["Firstname",forename],
                         ["Surname",surname],
                         ["Address1",addr1],
                         ["Address2",addr2],
                         ["Address3",town],
                         ["Address4",county],
                         ["Postcode",postCode],
                         ["Telephone",tel1],
                         ["Mobile",tel2],
                         ["Email_x0020_address",email],
                         ["GP_x0020_Surgery",gpSurgery],
                         ["Cared_x0020_for_x0020_name",caredName],
                         ["Cared_x0020_for_x0020_address",caredAddr],
                         ["Transport_x0020_Requirements",caredTransportAss],
                         ["Care_x0020_required",caredCareAss],
                         ["Specific_x0020_learning_x0020_ne",learnerNeeds],
                         ["Specific_x0020_dietry_x0020_need",dietaryNeeds],
                         ["Mobility",accessNeeds],
                         ["Other_x0020_Notes",otherDetails]
                        ]
        });
Coordinator
Aug 10, 2014 at 3:47 AM
Well, again, anonymous writes don't work. Is that what you're trying to do?

M.