- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 12:45 AM
Is it possible to redirect to different pages from a simple list based on the link clicked. For example, it should take me to different pages based on whether I click Project and Developer. I am having a simple list page for Project and a card page for Developer.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 05:53 AM
Got it perhaps you need a script like this, adapted to your exact use case
/**
* @Param {params} params
* @Param {api} params.api
* @Param {any} params.event
*/
function evaluateEvent({api, event}) {
const route = event.payload.table === "sys_user" ? "user" : "task";
return {
route: route,
fields: {
sysId: event.payload.sys_id
}
};
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 09:48 AM
Yes, when the "Reference link clicked" event is triggered the payload for that event should be different for the links from different columns. That is the table and sys_id payload properties should be different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 11:35 PM - edited 10-02-2024 11:35 PM
I am aware of payload properties. I think I was not clear in my question. When I click on Project I want to go to a different page and when I click on Developer I want to go to a different page. Right now, I can only link to one single page when a reference link is clicked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 05:53 AM
Got it perhaps you need a script like this, adapted to your exact use case
/**
* @Param {params} params
* @Param {api} params.api
* @Param {any} params.event
*/
function evaluateEvent({api, event}) {
const route = event.payload.table === "sys_user" ? "user" : "task";
return {
route: route,
fields: {
sysId: event.payload.sys_id
}
};
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 01:11 AM
Thank you, it worked.