Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Getting Started, Learning, Etc.


Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old February 12th, 2018, 11:52 AM
traba5058 traba5058 is offline
Regular Contributor
Join Date: Jan 2012
Location: Atlanta, GA
Posts: 77
Post Javascript Syntax Error - FusionPro

I have a rule that looks at 2 fields to determine what to return.

I'm getting a Javascript syntax error message on the following rule and for the life of me, I do not see it.

if ((Rule("RuleEmailFirstName") != "") && Rule("RuleEmailLastName") != ""))
return Rule("RuleEmailFirstName") + "." + Rule("RuleEmailLastName") + "@" + Field("Email Domain");
else if ((Rule("RuleEmailFirstName") != "") && (Rule("RuleEmailLastName") == ""))
return Rule("RuleEmailFirstName") + "@" + Field("Email Domain");
else if ((Rule("RuleEmailFirstName") == "") && (Rule("RuleEmailLastName") != ""))
return Rule("RuleEmailLastName") + "@" + Field("Email Domain");
return "";
Will someone please help me and point out what I'm doing wrong?
Reply With Quote

error, fields, javascript, multiple, syntax

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 04:14 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.