Hi!
I have a requirement where I need to pass inserted form field values by the onclick event of the submit button to a http Flow.
Since I need to create a validation based on inserted values - return it to the portal and display a custom message based on the outcome.
Could anyone assist me with the javascript function, I got this from another post:
function sendFlowRequest(formContext)
{
var CJGuid = formContext.data.entity.getId();
CJGuid = CJGuid.replace(/[{}]/g,"");
parent.$.ajax
({
type: "POST",
url: "**FLOW URL HERE**",
contentType: 'application/json',
data: JSON.stringify({"CJGuid" : CJGuid}),
success: function ()
{
alert("success");
}
});
}
How do I adapt the javascript to send the emailadress, first name & last name values of the form fields to the flow?
THANKS!