FW_Flash_Messages styling/structure
Hi,
I'm wanting to customise how popups are displayed by altering the markup the messages are displayed in. Mainly the contact forms success and error popups.
I know I could edit this: https://github.com/ThemeFuse/Unyson/blob/a2adef26229f5ad1ad015b0b74f657aa59f21235/framework/static/js/fw-form-helpers.js#L57-L76
However I'd then have to do the same for the onErrors callback and anywhere else I want to change the output.
Is there a better way to do what I want to do?
Thanks
Hello,
However I'd then have to do the same for the
onErrorscallback and anywhere else
Can you tell me please where else?
Is there a better way to do what I want to do?
I don't know any other way.
But it seems simple:
- Create you own copy of this function
- Overwrite
onErrorsandonSuccessand use it instead of this
Thanks, I copied fwForm.frontend.renderFlashMessages which allows me to modify the output, that'll work just fine :+1: