Creating a button in the SOW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 05:53 AM
I created a workspace button in UI ACTION, I need that as soon as I click the button a new feedback creation form will open for me (u_support_feedback table)
For example:
I tried the code:
It doesn't work, I would appreciate your help
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 08:53 AM
Hi,
Make sure to check client checkbox on your ui action and call the function in Onclick box:
use below script:
function onClick(g_form) {
//leave query = '' if you dont want to autopopulate anything on new record
var query = "active=true^parent="+g_form.getUniqueValue(); //use this as query string to auto populate fields on newly created record.
g_aw.openRecord("u_feedback_request", "-1", {
query: query
});
}
query parameters are optional.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande
Thanks
Anil Lande