Set an error message in SharePoint desginer - sharepoint-online

How to create an error pop up in Sharepoint desginer 2013?
Is there a way where, I can set a user message if a condition check fails in Sharepoint desginer 2013?

If you want to add error popup in a list form using SharePoint designer 2013, we can open the form page and find the "PlaceHolderMain", then add some JavaScript code in the below.
If you want to make the error popup works in all page, we can add the code into in master page using SharePoint designer.
If I misunderstand your requirement, I suggest you provide more information for further research.

Related

create a custom left navigation for default.aspx in sahrepoint O365

I am presently working in Sharepoint O365. I need to build a custom left navigation for only my default.aspx page using Sharepoint designer, while keeping the normal navigation for the rest of the site. I have seen it is possible in Sharepoint 2010. However, I am unaware of any workaround in O365. Any knowledge regarding this shall be appreciated.
Please check the codeless solution:
Custom Left Navigation in SharePoint 2013
Or use custom html code to make a navigation:
https://www.w3schools.com/howto/howto_js_sidenav.asp

Migrating InfoPath Form from Sharepoint 2013 to Sharepoint Online

We're migrating a very complicated Infopath template from Sharepoint 2013 to Sharepoint Online. This template requires domain permissions and a lot of custom code, so a browser-enabled form is not possible.
In Sharepoint 2013, we share the template file (.xsn) which people can click on and it will open in InfoPath Form Filler, where they can do their work. Nobody actually submits the form, because the data is kept on a database.
In Sharepoint Online, the .xsn file will open in Designer view. This is an issue because the users are non-technical people and we don't want them to have to click through to preview or accidentally change something.
We've published the form in a Form Library, but when someone tries to create a new Form, it'll open correctly in InfoPath Filler Form, but give an XML error.
"The form contains XML that cannot be parsed: An invalid character was found in text content. Line 1, Position 5 MSCF"
When I check out the underlying template, I can Edit the Template, which again opens up InfoPath Designer with no issues.
I've also exported out the XML for the template and spot no XML errors and can open it in InfoPath designer, so I'm at a loss about how to debug the XML error.
So, we can go either route to resolve the issue:
1) Continue putting the template file on the Sharepoint folders and having users click on it and fill in data, but it must open in Filler Form, not Designer.
2) Fix the issue with the XML Form error (how do I go about even debugging this?) I've exported out the template as a .XML file, but can not spot any XML errors.
Thanks.
Your other option is to get rid of infopath and use a custom form using javascript in classic UI mode OR develop an SPFX webpart that achieve the same thing as your infopath ?

Editing Sharepoint 2010 Webpart SSRS report

Does anyone know how to check out a webpart in Sharepoint 2010. I have an SSRS report within the Webpart that shows on the front page of the Sharepoint site.
I need to edit the web part. I only need to edit or add to the "Show navigation bar the navigation controls and Show Back Button".
When I check these 2 boxes and click APPLY I get an error message "Cannot save all of the property settings for this Web Part. The file is not checked out. You must first check out this document before making changes."
I have full control on the site, but not sure how to check out the web-part to edit and add these 2 buttons to the navigation of the report.
Thanks,
I figured this out through this link...Customize Web Part
I went to libraries and then Pages and found the Home page and checked it out.

How to add a webpart to a listview in sharepoint 2010?

I have to add a "Content Editor" web part to a list view. The "Content Editor" is required to implement some java script and a html textbox.
The problem is that after adding the web part to the list view the dropdown to switch your current view gets lost. It doesnt matter where you add the web part or if you try it with the designer or IE.
Do you have any ideas on how to solve this? Or is there another way to implement java script into a listview without adding a new web part?
This is the dropdown I mean:
Its a known issue with SharePoint 2010.
You can modify the page using SharePoint Designer to put it back.
http://vintentou.wordpress.com/2010/08/03/missing-dropdown-menu-for-choosing-of-views/
My company has also produced a free add-on that will do this for a whole site.
http://www.pentalogic.net/sharepoint-products/free-stuff/view-rescue

Force InfoPath form to open in Browser

I created an InfoPath form that uses VB code to push fields into a custom list I created on a SharePoint 2007 site. This part works.
I "published" the form into a form library.
I changed the settings on that form library to open items in the browser and allow editing of content types.
In InfoPath under Form Settings I chose the compatibility setting to allow this form to be opened in a browser, I linked to my Forms service online, and ran the design checker. No errors.
When I try to open it in the browser using the "Edit in Browser" setting I get this error message:
This form template is not currently
browser-enabled. It must either be
republished as a browser-enabled form,
or opened using Microsoft Office
InfoPath 2007.
No matter what I do, the form will not open in the browser. This is all I want. Did I miss something??
You need to upload your form thru Central Administration because you use code in your form. See this MSDN acticle.

Resources