Create custom wizard

Good day to all! Tell me, is it possible to create a custom wizard for a specific doctype? For example: when you click on a custom button, a wizard pops up with certain fields, and then fills in the steps.
Thank you.

Hi @Moshu,

A custom button adds to check its documentation.
Wizard/Dialog for, please check its documentation.

Thank You!

dialog boxes, this is not really my option. You need to create something like a setup-wizard when you first run frappe, but with custom fields.

check how ERPNext setup wizard works. It extends the frappe setup wizard of few steps.

with that pattern you should be able to extend ERPNext setup wizard with your custom app.

How? you’ll need to check the code. If you figure out from code add documentation or post.

1 Like

I gave Revant’s approach a shot for an entire half day and couldn’t get far with it.

It seems to me that frappe is designed to only run the setup wizard before the first company saved yet, thats why ERPNext won’t allow you to install it if Frappe’s Wizard has already run.

My conclusion is that you need to override frappe’s setup wizard with your customized version. For my objective it doesn’t seem to be worth all that time investment. I’ll go with js dialogs instead.

FYI I tried with several variations, the closest solution seems to copy frappe’s setup-wizard files and modify them to your liking. The problem is that it keeps redirecting to the homepage despite my efforts to comment out redirect code.

Here’s a few steps:

  1. Create a page, e.g, custom-wizard
  2. Copy code js and py from frappe’s setup-wizard page and modify it. You want to change setup-wizard to custom-wizard
  3. Run this on route /app/custom-wizard/0. custom-wizard your page from step 1.
  4. Keep iterating, good luck
1 Like