I'm new to SharePoint programming or modify form. I have a tenant with SharePoint Online and I created a list with calendar view: I'd like to modify the form when a user insert an event.
I tried to load the site with SharePoint Designer 2013 and tried to create a new form but obtained the error dialog with message "Could not save the list changes to the server."
After this, I tried to open the NewForm.aspx to see the code and maybe change it directly, but I can't see all the code: it seems that the part where there is the javascript is missing and there is a tag of missing assembly (sorry in the screenshot is in italian)
SPD missing assembly
So I tried with Visual Studio, but when I try to create a solution I obtain the error in the screeshot
VS create solution error
So the question is: I'm a beginner and I want to start with modify the NewForm.aspx so I can cancel some field to test: how to procede?
I found many links and references but it seems that SharePoint Online have different behaviour versus the old and on premise editions.
Any idea in what mode I can procede?
Editing or exchanging the Newform.aspx is the old way of customizing the SharePoint UI. The more modern way (and the only one which makes sense with SharePoint Online at the time of writing) is to use the JSLink Technology.
With JSLink you can attach custom JavaScript Rendering Code to Content Types, Fields etc. Check out the JS Link Introduction and the JS Link Tutorial
Related
I am trying to see if anyone knows of a workaround to do a save-as using a submit button within a PDF. I have a working version using Trusted functions in Adobe, but for our needs would like to avoid having our end-users from placing .js files in the trusted location on their machines.
The reason I am trying to do a save-as is to simply rename the output file with the date and username and place the files in a centralized location for data collection.
We are aware of using Adobe to distribute and receive responses from end-users... but as mentioned above we are using both platforms, and also have some DirectX issues.
I have also created the same Form in Microsoft Forms and I personally feel like this may be our best option in rolling this out, but before we wrote anything off, I figured I would try and see if there are any other options using JS and PDF's.
I am trying to create new form using HTML/ JavaScript in NetSuite.
I read some of the links (Creating Custom HTML Forms in NetSuite on Youtube) which depicted on how to do it, but when I tried on my personal account (administrator) it is not happening, I don't have that "Marketing Template" subtab in the Documents Section.
I have also read about the Suitlets, but everything is very confusing. These forms are supposed to pop up on NetSuite Window only.
Suitelets are the correct approach to create a new custom page in the NetSuite UI.
You can pull in any custom HTML, CSS, and AMD-compatible JS library you wish. To help more than that, you'll need to ask more detailed questions.
Here's a video showing an example of creating a Suitelet, although it uses the SuiteScript UI APIs rather than custom HTML: https://youtu.be/Hk2lG-SfZ3k
I have been working on a spring roo project and I've hit a wall in terms of being able to customize the web page.
The main thing I want to do is be able to dynamically hide certain fields as the client is filling out the web form. I have a drop down list driven by enumerations that has 4 options and a fifth "other" option. If the user selects "other" I want a text box to appear so the user can fill out their own selection.
I was talking to someone and they said "This really depends on the UI you choose. In case of MVC scaffolding you can use javascript to drive these relationships". I am indeed using MVC scaffolding so I guess I have to use javascript. I don't really know that much javascript but the problem lies in that I don't even know where the javascript code would go in term of my project files. And then the second problem of course is how to use javascript to hide the fields dynamically in Spring.
Thanks
Spring MVC scaffolding uses dojo by default as its javascript framework.
You are able to use standard dojo functions when you attach events to DOM elements. You can simply use the <script/> tag to contain your own custom javascript methods within a generated .jspx page.
Additionally, you can integrate another existing javascript framework such as jQuery. At the moment you can include jQuery manually, but it can possibly be expected in a future Spring Roo version.
You can play safe with dojo for now.
I have problem with SharePoint encoding the javascript link, that normally renders like href="javascript:Function('url');" but in Sharepoint like href="javascript:Function(& #39;url& #39;)" wich of course does not work.
What do I need to do?
I need to be able to use my user control as stand alone as well as linked into a sharepoint page, right!?
Where are you inserting the code? Within a web part, a custom control, etc?
If you are trying to use the Content Editor web part I did notice some differences with it in 2010. When trying to use items that require javascript I just created a .txt file that resides in the SiteAssets. The file contains all the HTML/JS that I would normally add to the web part. Then point/link the Content Editor web part at that file.
This seemed to fix some issues I was having. Could work for you.
The issue is that I've written a simple piece of JS that allows for some functionality that must be present on all pages. I've tried including it in /_catalogs/masterpage/default.master and I have found that it is not being called for the search results page.
The basic requirement as three core requirements:
The include must only happen in one place within SharePoint - we cannot track and maintain multiple touch-points in the SharePoint code.
The target file to be modified should exist for both 2007 and 2010 - I need to be able to provide instructions on where to include my code for users on both platforms.
The code can't go in core.js or any other file that can't be modified by users on the hosted platform.
I've tried a number of different resources to figure this out, but I'm not a SharePoint guy, and trying to wrap my head around this architecture is quite daunting.
Try your options from here. On same blog, it is mentioned what was the best approach for SharePoint 2007 as well.
http://weblogs.asp.net/jan/archive/2010/03/01/scriptsrc-referencing-javascript-files-with-sharepoint-2010-custom-actions.aspx
It sounds like you're close. By default a search site will not have the Publishing Feature turned on to use a master page. If you enable the Publishing Feature from the Site Features on the Search site then you can set the masterpage for the Search to be the same as your other sites. That would allow your javascript to be run on the search pages too.
If you cannot change the masterpage setting for the search site then you may need to add your code into both places (optionally referencing one central file from both). But the masterpage is a good central place for code like this. It's just a matter of getting the code in all of the masterpages that are used.
Have you had a look at the free SharePoint Infuser? SP2007 only, but an SP2010 will be released as well.
Basically it allows injecting of any HTML / CSS / JS on all pages in a site collection without modifying them.