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: {
            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 Children
No Data