We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nothing happens while save DocType 'New Success Action
It should save.
(frm) => { const checked_actions = frm.action_multicheck.get_checked_options(); if (checked_actions.length < 2) { frappe.msgprint(__("Select atleast 2 actions")); } else { return true; …
(paste here) I am using latest version on frappe 15.*
Frappe manually installed
The text was updated successfully, but these errors were encountered:
Please check it.
Sample code:
frappe.listview_settings["Item"] = { onload: function(listview) { listview.page.add_action_item(__('Action Clicked'), () => { console.log("--Action Clicked--"); let checked_items = listview.get_checked_items(true); if (checked_items.length < 2) { frappe.throw(__("Select atleast 2 actions")); } else { frappe.msgprint(__("2 Item Selected")); } }); } };
Everything is working fine. No problems were encountered in the latest versions 14 and 15.
Sorry, something went wrong.
No branches or pull requests
Description of the issue
Context information (for bug reports)
Observed result
Nothing happens while save DocType 'New Success Action
Expected result
It should save.
Stacktrace / full error message
(frm) => {
const checked_actions = frm.action_multicheck.get_checked_options();
if (checked_actions.length < 2) {
frappe.msgprint(__("Select atleast 2 actions"));
} else {
return true;
…
Additional information
Frappe manually installed
The text was updated successfully, but these errors were encountered: