I'm attempting to create a edit form under Your Account > Settings that allows updating of a custom field I've added to xf_user.
I've extended ControllerPublic_Account using actionPersonalDetails() and actionPersonalDetailsSave() for reference.
But I can't figure out how to make my template's form reload the updated data from the database after submission. It's populating fine on initial load.
My database field is a DECIMAL and when I load the form and enter an integer instead, after submitting the form I get the 'Your changes have been saved' message but it does not repopulate the field with the decimal conversion even though I can see it's been updated in the table. A hard refresh will show the new value, but a simple F5 won't do it.
Is this the expected behaviour?
I've extended ControllerPublic_Account using actionPersonalDetails() and actionPersonalDetailsSave() for reference.
But I can't figure out how to make my template's form reload the updated data from the database after submission. It's populating fine on initial load.
My database field is a DECIMAL and when I load the form and enter an integer instead, after submitting the form I get the 'Your changes have been saved' message but it does not repopulate the field with the decimal conversion even though I can see it's been updated in the table. A hard refresh will show the new value, but a simple F5 won't do it.
Is this the expected behaviour?