Press Release Distribution Pricing Packages

“;
}
$(“#btnSubmit”).parent().prepend(“”+t_errors+”

“);
}

function univform_ajax_register(bRetry){
univform_errors = [];
$(‘#form_error_box’).remove(); //hide error box
//$(‘#smartForm1 .prw_button’).hide();
$(‘#btnSubmit’).hide().parent().before(”);
//g_u_pass_field.val(g_u_passwword); //put the pass field back
//set login page redirect url
var redirectLink = “https://app.prweb.com/Login.aspx?campaigncode=”+$(“input[name=campaigncode]”).val()+”utm_source=”+$(“input[name=gASource1]”).val()+”&utm_medium=”+$(“input[name=gAMedium1]”).val()+”&utm_campaign=”+$(“input[name=gACampaign1]”).val()+”&prw_ga_use_case=2″;

$.ajax({
async: true,
method: “POST”,
cache: false,
url: ‘/wp-content/themes/prweb/ajax/register.php’,
data: {
fname: $(‘#firstName’).val(),
lname: $(‘#lastName’).val(),
phone: $(‘#busPhone’).val(),
org: $(‘#company’).val(),
country: $(‘#country’).val(),
email: $(‘#emailAddress’).val(),
pass: $(‘#password’).val(),
utm_campaign: $(“input[name=gACampaign1]”).val(),
utm_medium: $(“input[name=gAMedium1]”).val(),
utm_source: $(“input[name=gASource1]”).val(),
campaigncode: $(“input[name=campaigncode]”).val(),
prw_ga_use_case: ‘1’,
dev_ver: ‘prod’,
lang_id: ‘1033’
},
success: function(data){
//g_u_pass_field.val(”); //clear pass back out incase there was an error

var json = JSON.parse(data);
var bAjaxSuccess = true;

if(json.ierror){
bAjaxSuccess = false;
if(json.ierror == ‘timeout’){
univform_errors.push(‘processing request…’);
univform_showerrors();
//$(‘#main form’).trigger(‘registration-timeout’); //trigger a timeout event that GTM will catch and fire GA datalayer event

setTimeout(function(){
univform_ajax_register(true);
},200);
}
}
else if(json.string.error){
if(bRetry && json.string.error.includes(‘LoginTaken’)){
g_redirect_url = ‘https://app.prweb.com/Login.aspx’;
}
else {
if(json.string.error.includes(‘CreateCompanyFailed’) || json.string.error.includes(‘already exists’)){
json.string.error = “You already have a PRWeb account. Please click this link[2] to log in to your account. “;
}
bAjaxSuccess = false;
univform_errors.push(json.string.error);
univform_showerrors();
}
}

if(bAjaxSuccess) {
$(“#returl”).val(g_redirect_url);
$(“#password”).val(”);
$(‘#smartForm1’).submit();

}else{
$(“#btnSubmit”).val(“Submit”);
}

},
error: function(jqXHR,textStatus){
console.log(‘ERROR’);
console.log(jqXHR);
console.log(textStatus);
$(“#btnSubmit”).val(“Submit”);
},
complete: function() {
$(‘.tmp_processing_txt’).remove();
$(‘#btnSubmit’).show();
}
});
}

References

  1. ^ 1-866-459-2598 (service.prweb.com)
  2. ^ click this link (service.prweb.com)
1 2 3 4

Share