Skip to content
New issue

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 happen while save DocType 'New Success Action'. #26323

Closed
jaydeep-sigzen opened this issue May 4, 2024 · 1 comment
Closed

Nothing happen while save DocType 'New Success Action'. #26323

jaydeep-sigzen opened this issue May 4, 2024 · 1 comment
Labels

Comments

@jaydeep-sigzen
Copy link

jaydeep-sigzen commented May 4, 2024

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;

(paste here)

I am using latest version on frappe 15.*

image

Additional information

Frappe manually installed

@Nihantra-Patel
Copy link
Contributor

Please check it.

scrnli_06_05_2024_11-52-30.mp4

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants