Session Defaults form popup

Hi Everyone,
I have a query about session defaults what I want is when the user logs into the system every time the first thing is system should popup the session defaults form.
How I can do this?

There is a hook in python called boot_session
add a flag in boot_session with name

default_popup = 1

this boot will give access to this variable in JS

frappe.boot.default_popup

make a script in custom app and add it in hook called

app_include_js

and write your code
upon success show update this boot_session variable to 0

2 Likes

Actually I don’t know much about coding can you please guide me a little bit more in this…
Thanks

What is your use case?

Please look at these pictures…


when we login to the system this is homepage for ERPNEXT and if I want to setup session default I need to select my profile and then the system shows the session default column like this…

and when I click on this session default field a form will popup…

what I want is when the user login into the system every time the first thing is system should popup this session default form…