Forum Post: RE: Open the appropriate selector page

  • Thread starter Thread starter Godfrey Sorita
  • Start date Start date
Status
Not open for further replies.
G

Godfrey Sorita

Guest
You can assign pages per user role by going to Administration Setup Roles Pages. Though having multiple selector pages, I believe this solution is not what you're looking for. As a workaround, you can use the code below: script $(function() { //IMPORTANT: Replace {!#LINK.relation#10152} with the token of the selector page var origPage = "{!#LINK.relation#10152}"; var pageId = origPage.split("pageId=")[1]; //extract selector page id //IMPORTANT: Replace Relations with the name of the section which contains the attach link. var attachOnclick = $("div[name='Relations']").find("a").first().attr("onclick"); var attachOnclick_arr = attachOnclick.split(","); attachOnclick_arr[0] = "return rbf_attachRelated("+ pageId; $("div[name='Relations']").find("a").first().attr("onclick", attachOnclick_arr.toString()); //replace onclick function of attach button }); /script Regards, Godfrey

Continue reading...
 
Status
Not open for further replies.
Back
Top