Hello Everyone,
I'm trying to create a Rule in FusionPro that will force the Email domain to always be "@example.com" so that personal emails cannot be entered in the field. I created the following rule:

if (Field("Email") == "")

   return "";
return ReplaceSubstring(Field("Email"), "@", "@example.com");

This rule is recognizing the @ symbol and adding the domain, But it is also then adding on the entered domain to the end of the tag.

Currently if I enter: [EMAIL PROTECTED] - I receive a return value of: [EMAIL PROTECTED]

Does anyone know how to adjust the rule for it to exchange values rather than add the value??? Thanks!

Nicola DosSantos

Ambit Press / Minuteman Press of Cambridge
Five Cambridge Center
Cambridge, MA 02142
Tel: 617.876.3688 Fax: 617.876.3896 www.ambitpress.com

Please send all jobs to [EMAIL PROTECTED]

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] --
View FusionPro Knowledge Base, FusionPro Samples at

You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com

Reply via email to