Wizard not submitting data on final step
Hi.
I'm having a problem with a Wizard. It has four data entry steps and a final Review step consisting of just placeholders.
I need to customise the model creation process at the end which I'm doing with
I guess I'm doing something wrong but I can't see what. Any help appreciated.
When included, all form data is correctly displayed in the "Review" step placeholders right before submit. It appears to be the case that anything I include as a placeholder on the final step gets wiped from state. For example, if I include the final step with just a message, all data is submitted.
I've attached a summary of the Wizard generation and a chunk of the final Step where I make placeholders.
I'm having a problem with a Wizard. It has four data entry steps and a final Review step consisting of just placeholders.
I need to customise the model creation process at the end which I'm doing with
handleRecordCreation in my Page class. If I include the final Review step, the $data being supplied to the Page class is empty. If I remove the Review step, the $data contains everything from all steps.I guess I'm doing something wrong but I can't see what. Any help appreciated.
When included, all form data is correctly displayed in the "Review" step placeholders right before submit. It appears to be the case that anything I include as a placeholder on the final step gets wiped from state. For example, if I include the final step with just a message, all data is submitted.
I've attached a summary of the Wizard generation and a chunk of the final Step where I make placeholders.


Solution
aha - it wasn't that but it did point me in the right direction. The problem was not the uniqueness of the Placeholder name, it was using the same name for Placeholders as the Form state name. So using
thanks for taking the time to look
Placeholder::make('name') killed the form state for TextInput::make('name').thanks for taking the time to look