Fenga
Forum Replies Created
-
Hi Adam,
Thank you for the assistance, the custom code provided by dev is about half working, there is a couple of issues, which can be seen by the screenshot below.
https://snipboard.io/LVsuSe.jpgIssue 1
The country field (which is a select field) is not copying over to address-2 country. Everything else works, as you can see in the screenshotIssue 2
Address 2 field labels are not appearing above the input field after it has been populated which you can see causes overlap text. From what I can tell, using the code does not cause the forminator field div to have the class “forminator-is_filled” added to it.If there is a chance for them to have a look, it will be greatly appreciated
Thanks
Hi Patrick,
Thanks for that, hopefully this feature can be made out of the box. I have managed to get a workaround working but assigning the role after the user is created using the hook ‘forminator_cform_user_registered’.
If anyone is interested on how its done, I’ve written a blog about it here: https://snapshotleisure.com/wordpress/how-to-assign-multiple-roles-with-forminator/
Thanks for the help!
Hi,
I was also wanting to potentially to run some code before teh form is submitted, would the following be the correct hook to us? ‘forminator_custom_form_before_save_entry’, is there any sample code on how to use the hook if it is?
Thanks
Hi,
Thank you for the response.
I was wondering if there is a list of filter and hooks that is documented that I can refer to? I will try the code above and see how I go.
Thanks
Thank you for the reply and the feature request, that would be much appreciated. As a workaround I was thinking I can set a hidden field which I will populate by evaluating the form data myself and use the rules with the hidden field instead to the role.
Do you know of any hooks I can use to pull the form data before submission and then set the hidden field value myself?
Thanks
Fung
Sorry for the late reply, I was waiting for me to test the feature to make sure it works before i replied ??
It does work and yes I am using the custom mapping functionality. It looks like this:
https://snipboard.io/YyLbTH.jpgThanks
Thanks Patrick,
That is what I am looking for ??
Much appreciated!!
Fung
Hi Adam,
Thank you for the clarification around that
Fung