I'm working on a module where I need to save the records based on the scope of website and store. For that I need to have the select box as its in the system->configuration.
![website configuration scope - magento][1]
How can I get that select box in my form
and save the website/store value in database so that it can be displayed in the specific store/website? Any suggestions on it?
Now I'm trying it breaking into two fields -> website and store. Now, how can I change the options in store based on the website selected? [1]: https://i.sstatic.net/1rHiP.png