Home › Forums › General discussion › getFieldValue on newForm
- This topic has 8 replies, 4 voices, and was last updated 4 years, 8 months ago by Halim Lahoud.
-
AuthorPosts
-
-
September 4, 2019 at 11:18 #26960
Hello,
I added a function to open a new URL after i hit the save button but when i do press the button, the new tab is opened even if all the fields arent filled, knowing that they are required fields. How can i check if the fields are filled before the process of saving and opening the new tab i need?
Thank you in advance!
Halim Lahoud -
September 4, 2019 at 18:31 #26962
Hi,
Look at the Save and redirect settings in the Misc tab – basically you should use something like this:spjs.dffs.redirect("TheRedirectURL",false);
Alexander
-
March 23, 2020 at 13:40 #29225
Thank you
-
-
February 21, 2020 at 11:48 #28767
@Alexander Bautz
It’s possible to on Save and Redirect (to DispForm) and specify the destination TAB. I have 3, and one of them will act has a validation of a list of users that the message was sent.
Yet when you access to that registry (directly to DispForm, form AllItems) I want to open in the first has normaly do, in first TAB.
-
February 21, 2020 at 19:36 #28785
Yes, you can set the selected tab by using an URL query string parameter like this:
.../YourSite/Lists/YourList/DispForm.aspx?ID=123&sTab=2
The tab index starts on 0 so your third tab has index 2.
Alexander
-
March 19, 2020 at 19:09 #29193
thank you Alex for your reply and continued support. I’m end user and doesn’t have SP designer , How i can implement the same ideas with script editor but it shows a popup message that said ” We appreciate your submission and we hope that you enjoy your journey on the new Acknowledgment” and then redirect as usual to the list item.
Thank you very much.
-
March 20, 2020 at 09:04 #29204
It is unfortunately not possible to add a “post save message” directly in DFFS because the form is immediately redirected after a successful save (standard SP functionality).
The easiest would be to make a web part page in your site (for example in SitePages) where you add the message in HTML, and then use the URL to this page in the spjs.dffs.redirect function.
In the web part page you can either add a timeout function to redirect back to the homepage, or add an OK button to do the redirect.
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.