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
Illizian
Illizian3w ago
Edit screens usually use the main Resource's form method, what's the issue you are facing?
Nashoba
NashobaOP3w ago
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
toeknee
toeknee3w ago
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.
Nashoba
NashobaOP3w ago
Ok it makes sense

Did you find this page helpful?