$scope.$on("Formulate.formSubmit.OK", function (data) {
alert(data.name);
});
if i do like this i receive "Formulate.formSubmit.OK" on the data.name parameter ... am i doing something wrong or miss something ?
and i did the inpsect and i cannot see nothing with the name and data from the form
that 'data' in the formSubmit.OK has an inner property called 'fields' with all the fields sent in the request. However it's constructed as a fieldMap with the fields' Ids - and not the fields' alias.
Is there any way to use the "alias" to get a specific field?
(I would like to present a message like this after the user submits the form => "A copy of your request has been sent to your email address '[EMAIL]'" )
Form name and data after submit
Hello Nicholas is there a way to know witch form (and data) was submited here ...
thank you
Angelo
Here's where that form data is emitted from: https://github.com/rhythmagency/formulate/blob/2300607bae189811aff4533208aef1218611fbec/src/formulate.frontend/responsive.bootstrap.angular/directives/form/responsiveForm.js#L59
Looks like it includes the form name:
You can get access to the data by using a parameter in your event handler function:
Use your debugger or console.log to inspect the properties on
data
.Hello Nicholas
if i do like this i receive "Formulate.formSubmit.OK" on the data.name parameter ... am i doing something wrong or miss something ? and i did the inpsect and i cannot see nothing with the name and data from the form
thank you
Angelo
Looks like the first parameter is the event, and the second parameter is the data. So you'd do:
Hi Nicholas,
that 'data' in the formSubmit.OK has an inner property called 'fields' with all the fields sent in the request. However it's constructed as a fieldMap with the fields' Ids - and not the fields' alias.
Is there any way to use the "alias" to get a specific field? (I would like to present a message like this after the user submits the form => "A copy of your request has been sent to your email address '[EMAIL]'" )
Thank you. Regards
Busy week, so I'll have to keep my response brief. Some ideas:
thats it :D
thank you
Angelo
is working on a reply...