UI Builder: where to configure "New" button event in related lists

3_P
Tera Expert

Hello!

 

I have a record page from template in my workspace. It has related lists and on some of the lists there is a "New" button. I added "New record button clicked" event mapping with "Link to destination" event handler. In my workspace when I open a record and the try to create a new record in one of related lists the following happens:

 

- first tab with creating new record opens (parameters in URL added after "/sub")

- second tab with "The page you are looking for could not be found" opens (nothing added after "/sub")

 

The first tab opens because of the "New record button clicked" event mapping and it works how I want. Thou I would like to disable this second event that opens the not-working tab.

 

It looks like this:

3_P_0-1709306757865.png

The first tab is "Create New Scrum Task" and it wors, the second is not working.

 

How to get rid of this second tab?

1 ACCEPTED SOLUTION

Hi @BHAVANI B 

Check my comment to this post. The reason of this problem was that I have named the page for record form differently than it was named in the route of "Create New Record" action. You probably have a page in your workspace with a record form that has a name different than just "record". Try renaming this page to "record" and deleting the "Link to destination" event handler.

View solution in original post

3 REPLIES 3

3_P
Tera Expert

In "sys_declarative_action_payload_mapping" list you can find "Create New Record" action for Related List. The route inside this action is set to "record". In my case I had no page with this name, because I named my record page "One Record". The action couldn't find the route and didn't work. After changing the name of the page to "Record" the New button works and doesn't need an event.

BHAVANI B
Tera Contributor

Hi @3_P 
Can you please help me with this if you have found the solution, because I'm also having the same issue.
Thank you.

Hi @BHAVANI B 

Check my comment to this post. The reason of this problem was that I have named the page for record form differently than it was named in the route of "Create New Record" action. You probably have a page in your workspace with a record form that has a name different than just "record". Try renaming this page to "record" and deleting the "Link to destination" event handler.