Click here to Skip to main content
12,632,198 members (26,328 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

12.3K views
1 bookmarked
Posted

Publish a Form for Anonymous Users on a Public Site in Office 365

, 11 Jun 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
Publish a Form for Anonymous Users on a Public Site in Office 365

In this article, I will demonstrate how to design forms for public sites in Office 365 with the help of Forms Designer and make them available for anonymous users. As an example, I will create a simple feedback form and place it onto the Contact Us page.

First, we need to create a list to store the requests from anonymous users. I've called it 'Requests' and configured with the following columns: Phone, Email and Message.

SharePoint List Columns

Ok, now I have to grant anonymous users a permission to add new items. Unfortunately, SharePoint Online doesn't provide an interface to achieve it but there is a third party tool that allows to manage anonymous access:
http://anonymous365.codeplex.com/

Upload the solution above to the catalog:
{your public site domain}/_catalogs/solutions/Forms/AllItems.aspx

Activate it. Next, make sure that the limit of server resources for your public site doesn't equal to zero in SharePoint admin center or expand the quota otherwise:

SharePoint Online Admin Center
SharePoint Site Resource Quota

Now, you can find 'Anonymous Access' button on the ribbon of the list:

SharePoint Online Anonymous Access

Open the Requests list, click 'Anonymous Access' and select 'Allow anonymous users to add items to this list' option. Now, when we've provided users with an access to add items, we can deactivate and remove Wsp365.Anonymous.wsp solution.

Next, let's create a 'Thank you' page where the user will be redirected after submission of the form. I've made a new publishing page with the following content: '?Thank you for your message. We will contact you soon.'

Almost done. Now, we need to design a form and publish it onto the Contact Us page. Start Forms Designer to design a new form: go to the Site Contents page, click Forms Designer app, choose Requests list in the drop-down and click Start:

Start Forms Designer

Here is my form:

SharePoint New Custom Forms

General settings:

SharePoint Form General Settings

Click Export button on the ribbon to save the form into a file. Open Contact Us page, turn it into Edit mode and insert the exported form:

SharePoint Public Form

Publish the page. If your form contains required fields, you should fill them in to pass the validation. Here is the result:

SharePoint Online Contact Us Form

With the help of our JS-framework, you can add extra validation for e-mail and phone number fields if required. Get more information on how to publish forms onto SharePoint pages:

Please do not hesitate to leave your questions in the comments.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Dmitriy Kozlov
Technical Lead Plumsail
Russian Federation Russian Federation
Expert in SharePoint
The leader of SharePoint Forms Designer Team: http://spform.com
Co-founder of Plumsail: http://plumsail.com
My blog: http://formsdesigner.blogspot.com

You may also be interested in...

Pro
Pro

Comments and Discussions

 
QuestionAnonymous Access on O365 Pin
Member 1133339124-Dec-14 7:33
memberMember 1133339124-Dec-14 7:33 
AnswerRe: Anonymous Access on O365 Pin
Dmitriy Kozlov29-Dec-14 4:23
groupDmitriy Kozlov29-Dec-14 4:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 12 Jun 2014
Article Copyright 2014 by Dmitriy Kozlov
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid