getFieldValue on newForm

Forums General discussion getFieldValue on newForm

Tagged: , ,

Viewing 3 reply threads
  • Author
    Posts
    • #26960
      Halim Lahoud
      Participant

      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

    • #26962
      Alexander Bautz
      Keymaster

      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

    • #28767
      Filipe Ribeiro
      Participant

      @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.

    • #28785
      Alexander Bautz
      Keymaster

      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

Viewing 3 reply threads
  • You must be logged in to reply to this topic.