Last updated July 12, 2024
My name is Alexander Bautz, I’m 50 years old (as of 2024) and live in Norway.
I have worked with SharePoint since 2007, and have over the years acquired quite a bit of knowledge about both SharePoint and JavaScript and have built JavaScript based solutions used in thousands of sites around the world – in both small businesses and in large corporations.
My most popular solution is the Classic Dynamic forms for SharePoint (DFFS). It was first released in 2012 and is continuously updated to bring in new functionality and to ensure it keeps up with the constantly changing SharePoint online platform. You can find it on the Products menu at the top of this page.
The new Modern Dynamic forms for SharePoint Online can be found over at my other site here: https://spjsworks.com
Contact form
The primary channel for support is the forum. See if your questions have already been answered before sending a request using this form. You can sign up for a forum user account and post any question or feedback.
If you for some reason cannot use the forum, you can use the below form, or you can send an email directly to alexander@spjsblog.com
I posted this in a thread on eggheadcafe.com:
I am using MOSS 2007, and I am trying to have it so when a user puts the cursor over a field in a form they need to fill out, text will show explaining what is needed in that particular field(and not the defailt text which just redisplays the title). Ultimately, I would love to bind each field to a coresponding description located in a ‘field help’ list. The list has only 2 columns; a name column and a description column. I only have access to SP designer 2007. Hopefully I gave enough info for someone to help me….I’m stumped.
and someone left this response:
Under General Settings, you can select the option that says, “Show Detailed Tooltip in MouseOver Event”
But i am not sure how to configure the popup contents.
And you can use Javascript to show content on mouse over as described here,
https://spjsblog.com/
I checked out your site, and you have very cool stuff, but its not quite what I needed for my issue. I was wondering if you ever had this need arise and if you had a solution. Any help or direction would be great.
Do you know how to find the value of WorkflowStatus type columns? I see your js to grab most of the other types… is this just a url type?
Hi Alexander,
I hope you don’t mind but I nudged Mark Miller at Endusersharepoint in your direction. Your header solution is huge and needs to be shared… all to your credit!
Charlie Epes
Buffalo, NY
Charlie,
Feel free to spread the word to others!
Tom and Jeff,
Sorry for not replying – i must have missed out on your posts due to some e-mail issues (not receiving alerts on new posts). Both requests are in fact something i already have done. I will try to find time to write about it.
Alexander
Hi Alexander,
Many thank for sharing your SharePoint solutions with us! So far I have tested the header, choice field wrap, and mouse-over codes and everything has worked flawlessly.
The beauty of the internet is that there are plenty of generous people sharing their code and tips – however, it is extremely rare to see solutions presented in such a clean, simple and concise manner – and to see quick code updates to implement feedback from comments.
Thanks again – you rule!
Marc
Toronto, Canada
Hi Marc,
Thank you! – I’m glad you enjoyed my blog – feel free to make requests on stuff you would like me to write about.
Alexander
Hi Alexander,
I have one problem which I can’t find a solution anywhere but am hoping might be possible through the magic of javascript.
I am looking to trigger a page refresh upon the completion of a workflow.
My problem is that my work-flow updates many fields on a newly created item based on specific criteria entered in the new item form. Currently, users need to manually refresh after a few seconds to see the impact of the workflow but this is not ideal. I read that a time-based auto refresh can be used but most of time a refresh is not required so I was hoping for a one-time refresh based on completion. I figure the last workflow step could used to set some sort of dummy refresh variable to 1 that javascript calls and then refreshes the page and then resets the dummy refresh variable to 0. Perhaps the call could be based on timer but this way refresh is only when necessary (just my basic idea so far). If you have any ideas/solution you could share I would really appreciate it. Also, is this best place to put requests? If not, please let me know for future. Thanks,
Marc
Marc,
My thoughts goes in the direction of my script on Redirect from NewForm to EditForm or custom page.
You could use the first part of this script to set a timer and then “redirect” to the same page to refresh it after a set number of seconds.
To have it actually check the status column before refreshing would require you to explore the second part “redirect from NewForm to EditForm”, but you would have to edit the query to check the status column for a certain value – looping – until it is the right value – and then “redirecting” to refresh the page.
Alexander
Thanks Alexander – the Redirect script is a great solution. Funny thing is that yesterday I actually read through all of your posts and noticed the redirect solution and successfully got it working. I have this new item form set up redirect to a page that thanks them for the submission and gives various reminders, etc. and then provides a link to return to all items view of the list. Having the page redirect seems to provide enough time for my simple work-flow to complete. I will look into the timer as well. Awesome tip!
Marc
Hello Alex, do you know of a way I can show field descriptions on the dispform?
I have done something similar here – see if you can adapt the code to work in Dispform.
Alexander
Thanks but, I don’t know how to write code, I wouldn’t know where to start.
Hi Alex
I love your posts and I use to check every day to see your update just like checking mails and facebook. This a request to have dynamic Site Map using jquery is there any Possibilities to have please advice
HI,
This might be possible. Describe it in a bit more detail here:
Requests
Alexander
Hi Alex,
Im using SPJS Charts for Sharepoint and its ace (The cats pyjamas). However, im pretty new to this and im pretty stupid.
I am able to create filters based on ‘Choice Fields’ but I am wondering if I could create a filter based on a text field in the list that im using. Is it possible? Im rubbish at coding 2..
there is no way to donate to you if you live in the USA as there are no counties to choose from. 🙁
It’s a classic great and even useful part of information. I’m satisfied that you really shared it useful information around. Please stay in us modern like it. Thank one for writing.
Hi Alexander,
I am successfully using a couple of your scripts and want to thank you for them.
I have been trying to find a solution for something and am hoping you can help.
We are mass uploading PDFs electronically to a Document Library. The Name is the only field that populates on the list. Do you have a way of using Javascript to make the Title or any other field equal the Name with links?
I need to use lookups for these documents and the Name field is not a usable metadata field.
Any help you can give would be greatly appreciated.
Thanks!
Lana
Hi,
It is no problem creating a script to do this, but this must be triggered manually as javascript is client side. If this library is updated regularly, I suggest using a workflow.
Alexander
I am restricted with what I can do. I am working with SharePoint Foundation 2010 and I do not have SharePoint Designer or Visual Studio. The only workflow available to me is the 3 State Workflow.
If I select the Edit icon for the uploaded documents and save them the Title field populates without the links to the document. This gets me halfway to my goal. Is there a script that could be tied to a button to update it this way?
Or could the script you mention be tied to an Update Button and so also populate the links to the documents?
Not sure what you mean by “Link to document”. In a document library, the title field does not have this link – it is on the “Name” field.
I have added this article to answer your question
Please post any further questions there.
Alexander
Hi Alexander,
When you click on the “Name” of a document it opens the document. This is what I meant by keeping the “link” to the document when it was added to the Title field. This would allow my users to open and print the document if needed, just by clicking on the Title that they selected via lookup.
Thanks!
Lana
Hi Alexander,
I appreciate all your time and effort. I am in the brainstorming part of creating a site to specification so I am throwing out ideas all over the place. Having the “link” to the document is not a necessity for what I am doing at this time (someone else might need it though… ;0) )
Thanks!
Lana
Hi,
I do not think it is possible to have a lookup column link directly to a document. The lookup “link” will always be a link to the DispForm of the item.
Alexander
Thanks for a great forms tab product. I’m having a problem, though.
When the form first loads, it shows all the fields instead of just the fields in the first tab. Then when I click on another tab, then the 1st one again, it shows the fields it should in the first tab. How do I get it to show just the fields specified for the first tab when I open the form?
Hi,
I need some more details about SharePoint version, browser etc.
Have you put the code below the form web part?
Alexander
That was the solution, putting the code below the form web part, thanks.
I just wanted to say thank you for running this blog and providing awesome JavaScript based solutions for SharePoint. I often come here to get inspired of how I can fashion JavaScript for new problems at work and I never leave here disappointed. Great work once again good sir!
First off – Great tool! Looking to see how to get a trending/line graph to take multiple items and graph them over time. List is setup with the Title items and new columns for each value over time. is it possible to graph the different title items over the column headers for time and their values?
Hi,
I guess this should be possible. Try it out and post any questions in this article: https://spjsblog.com/2013/10/02/spjs-charts-for-sharepoint-v4/
Alexander
the list view selecter is awesome, a great work,really good. thank you, thank you very much..
Hari
Hi
I was wondering if you had some javascripts that increase the number of words in a multiline text field in a sharepoint list. It seems it is only takes 255 words. Any words of advice?
Thanks
Mike
A multiline textfield has no such limit, but the single line text field does have a 255 character limit. This limit cannot be changed on a single line of text field.
Alexander
I thought your autocomplete solution a great idea. Congratulations. You could create a section called Autocomplete to insert the options for more than one configuration too. Just like the cascading dropdowns.
I have an FAQ list that I would like to display on a page as an accordion style. I’ve searched and found accordion for forms but not for a list. Do you have such a thing? Thanks.
Sorry, I have no such solution, but if you are using SP2013 you find a solution here: https://code.msdn.microsoft.com/office/Client-side-rendering-code-ccdb2a0e
Alexander