How to redirect to a different Page on Site after submitting Form?

I have a form that a user can fill out and submit on a site but when they click submit it refreshes and they stay on the same page. I would like to know how can I redirect the user to the home page or the the record page to the summary view, which is on the same site.

I tried the code below below but it doesn't work, probably the wrong way to implement.

primaryButtons: {
          a!buttonWidget(
            label: "Submit",
            value: a!richTextItem(
              link: a!recordLink(
                recordType: 'recordType![MyRecordType],
                identifier: ri!GARP_Grant_Request.grantID,
                dashboard: "the url for the site record page",
              )
            ),

Thanks for any help the community can provide.

  Discussion posts and replies are publicly visible

Parents Reply
  • The paradigm is always the same - when you run a process you are always returned to the place at which you initiated the process. 

    What is your use case for starting a process in, say, a Record's Summary page and being returned to, say, the Record List...or even the home page of a Site? Why do you NOT want to be returned to the same place you started? Wouldn't the User Experience be confusing if you couldn't be sure of where you'd end up at after the process completed?

Children