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
Er. Prashant Veer SinghEr. Prashant Veer Singh 

Hi, I am getting error:

AJAX Toolkit Shell

Features: autocompletion of property names with Tab, multiline input with Shift+Enter, input history with Up/Down
Values and functions: ans, print(string), props(object), blink(node), clear(), load(scriptURL), scope(object)
NagendraNagendra (Salesforce Developers) 
Hi Prashanth,

The logic in this button is correct for Custom JS button. But if you use the same code for VF, it will give you an error as some standard functions are not supported in JS used in VF. To achieve the same functionality you can use VF Remoting.

Hope this helps.

Kindly mark this as solved if it;s resolved.

Thanks,
Nagendra