Cancel button on interface

I have created  a form which includes cancel button now I want when user clicks on cancel button it goes to previous page (in my case it is record type).

how should I configure it?

  Discussion posts and replies are publicly visible

Parents Reply
  • I have created one record type and there is link means when user click on that link he is able to see all the details of that record for that I have created one summary interface .Now I am calling that record type using site and the functionality should be  like when user clicks cancel button he goes to  previous page(record type page) but in my case when he click cancel button it does not work and when I refresh the page it directly goes to home page .

    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    value: true,
    saveInto: ri!cancel,
    submit: true,
    style: "NORMAL",
    )  

Children