Direct to EditForm based on User

Forums Classic DFFS Direct to EditForm based on User

Viewing 2 reply threads
  • Author
    Posts
    • #17334
      Tim Leschinsky
      Participant

      Need to take user to EditForm from list link click, bypassing DispForm, based on field entry in list. For example, field “Pre-Approver” has value “Joe Blow”. For this user, want to take directly to EditForm, reducing clicks.
      Thanks,
      Tim

    • #17359
      Alexander Bautz
      Keymaster

      Hi,
      This can be done by setting up a rule triggering on “Compare logged in user with people picker field” and have this rule call a the function “goToEditForm” in the “Run these functions / trigger these rules”. Then add this to the Custom JS”:

      function goToEditForm(){
          location.href = location.href.replace("DispForm.aspx","EditForm.aspx");
      }

      Let me know how this works out.

      Alexander

    • #17370
      Tim Leschinsky
      Participant

      Works like a charm, Alexander!

      Behavior mimics a Redirect, with brief, initial load of DispForm, then right to EditForm.

      Much appreciated!

      Best,

      Tim

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