Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Creating a button in the SOW

Shir Sharvit
Tera Contributor

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:

ShirSharvit_0-1703685130757.png

 

I tried the code:

ShirSharvit_1-1703685182301.png

 

It doesn't work, I would appreciate your help

 

1 REPLY 1

Anil Lande
Kilo Patron

Hi,

Make sure to check client checkbox on your ui action and call the function in Onclick box:

 

Screenshot 2023-12-27 at 10.17.26 PM.png

Screenshot 2023-12-27 at 10.21.45 PM.png

 

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