Should we duplicate code to make wizard edit steps ?
I made a big steps form to create my resource but for the edit should I duplicate this code ? (I hope no)
Thank you
4 Replies
Edit screens usually use the main Resource's form method, what's the issue you are facing?
like I made steps for my resource so I removed the form in the main resource file, and I made it in createResource file. Should I do it in the main file, or I need to keep step in this file and copy the code in EditResource
Not sure what you are doing in EditResource, but the form / wizard should be in the main Recourdse Form file
Theres no need to duplicate form code either, you just put it into a returned array function in worst case if it's section dependant and call it.
Ok it makes sense