Data is not getting saved in db after tranferring one form data to another
What would be the right approach to promote prospect to lead , I have a action on prospect 'promote to lead' and parameters on prospect are promoteLead_on and promoteLead_by so when I click on action it goes to lead form and when I save it , it is not getting saved in database. I want promoteLead_on and promoteLead_by after saving the lead form or when I click action .
ViewProspect
CreateLead
2 Replies
:squint:
Any solution or idea please ?
Hi,
first a sidenote, please don't use route when creating a url to a resource.
Read the following https://filamentphp.com/docs/3.x/panels/resources/getting-started#generating-urls-to-resource-pages
Are you getting any errors?
Is your form populated with all the data you want?
Because what you are doing is not changing data before safe you need to use https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-data-before-saving for that.
Your action is before filling the form, so is the form populated with data?