function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ElkeElke 

Using Libraries in JS code of custom buttons

Hi,

 

has anybody experiences in using JS libraries as ext.js inside the javascript code of a custom button for executing javascript?

 

I would like to use custom list buttons with the onclick functionality for selected records in the list view, depending on input values by the user. I want to use the standard Salesforce list views here (no custom VF Page with controller functionality).

The problem is how to invoke any InputBox (or better a Listbox/Combobox with suggestions) by the javascript code to wait for a user input. At the moment I use the "promp()" JS function. I would prefer using MessageBoxes or similar from an external JS library as ext.js or jQuery.  Is this possible at all?

I would appreciate any litte running sample how to invoke such an input box and use the result for further handling inside the custom button code.

 

Thanks in advance,

Elke