Screen Refresh
Hi Dmitry,
I have a small issue with SP Forms. When you close down a form and then return back it opens to the point you were before you closed it down. Can this be changed to go back to the starting point of the form (i.e. to the top of the form)?
Thanks
I have a small issue with SP Forms. When you close down a form and then return back it opens to the point you were before you closed it down. Can this be changed to go back to the starting point of the form (i.e. to the top of the form)?
Thanks
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi Katerina,
This is the common behavior of most browsers: when you click Back the scroll position will be the same as it was when you left the page. So, if you need to open the form from the initial position, please, use SharePoint navigation controls e.g. ribbon buttons, contextual menu etc.
This is the common behavior of most browsers: when you click Back the scroll position will be the same as it was when you left the page. So, if you need to open the form from the initial position, please, use SharePoint navigation controls e.g. ribbon buttons, contextual menu etc.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
What do you mean when you say "the point you were before"? Is it the scroll position, the selected tab, or the selected accrodion section? Could provide the screenshots?
Hi Dmitry,
I mean accordion section, tab etc on the form. For example you open a form a clicked a specific tab/accordion section and then click close. When you go back later the form it will open to the same tab/accordion you left it when you last went in. Is like the form is not refreshing.
Thanks
I mean accordion section, tab etc on the form. For example you open a form a clicked a specific tab/accordion section and then click close. When you go back later the form it will open to the same tab/accordion you left it when you last went in. Is like the form is not refreshing.
Thanks
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi Katerina,
Thanks for the additional information. Now, I see. You just need to clear formsdesigner_last_url cookie before closing the form. Please, put the following code into JS-editor of Forms Designer:
Thanks for the additional information. Now, I see. You just need to clear formsdesigner_last_url cookie before closing the form. Please, put the following code into JS-editor of Forms Designer:
Code: Select all
fd.cancel().click(function() {
$.cookie('formsdesigner_last_url', null);
})
fd.onsubmit(function() {
$.cookie('formsdesigner_last_url', null);
return true;
});
- Дмитрий Фоломеев
- Posts: 13
- Joined: Tue Nov 25, 2014
Yes, it works for only for buttons designer. How to do clear cookies if the user click cancellation window?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi Dmitry,
You can clear cookies when a user leaves a form by using the code below:
You can clear cookies when a user leaves a form by using the code below:
Code: Select all
$(window).unload(function() {
$.cookie('formsdesigner_last_url', null);
});
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests