Send parameter between forms

Home Forums Classic DFFS Send parameter between forms

Viewing 1 reply thread
  • Author
    Posts
    • #29098
      Halim Lahoud
      Participant

        Hello,
        I have 5 lists that are using DFFS and i need at each saves open the next one and prefill some value from the previous list in the new form.
        I redirect the save button to a new page using spjs.dffs.redirect
        is there a way to send parameters with the redirect that will be filled in the new form

        Thank you

      • #29104
        Alexander Bautz
        Keymaster

          You can do something like this in your parent form:

          var url = "/Sites/YourSite/Lists/YourList/NewForm.aspx?CustomKey1=First value&CustomKey2=Second value
          spjs.dffs.redirect(url,false);

          Then, in the child form add this in your Custom JS:

          setFieldValue("Your_target_field_1", GetUrlKeyValue("CustomKey1"));
          setFieldValue("Your_target_field_2", GetUrlKeyValue("CustomKey2"));

          Replace Your_target_field_1 and Your_target_field_2 with the internal name of the fields.

          Alexander

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