Redirect based on form values

Home Forums vLooup for SharePoint Redirect based on form values

Viewing 1 reply thread
  • Author
    Posts
    • #34247
      Paul Heffner
      Participant

        I have a form with a filed “SecondaryCategory”. I would like the form to redirect a user to another list, let’s call it “VQ”, when the Secondary category is a specific value.

      • #34250
        Alexander Bautz
        Keymaster

          Do you want a redirect after saving the NewForm or EditForm? – if so, to NewForm of the VQ list, or to an existing item?

          Here is an example that redirects to NewForm – just drop it in Custom JS:

          function dffs_PreSaveAction() {
              var sc = getFieldValue("SecondaryCategory");
              if(sc === "your_target_value"){
                  spjs.dffs.redirect("/sites/Your_Site/Lists/VQ/NewForm.aspx",false);
              }
              return true;
          }

          Alexander

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.