Jump to content

Quotation marks in rule


jhogan

Recommended Posts

I am trying to create a rule in which the outcome will have quotation marks in it.

 

It is giving me a validation error for what appears to be a problem with the quotations starting the sentence I need to happen as the result.

 

So the rule goes like this

 

{

if (Field("First Name")=="")

return ""Please" and "thank you" might be the most powerful words in the English language.";

 

else

return Field("First Name")+", "Please" and "thank you" might be the most powerful words in the English language.";

}

Link to comment
Share on other sites

Hello,

 

When you want to return text with a double-quote mark in it, you can use single-quotes around your text instead of the double-quotes you have in your rule now. Here's what your rule would be with single quotes:

if (Field("First Name")=="")
return '"Please" and "thank you" might be the most powerful words in the English language.';

else
return Field("First Name")+', "Please" and "thank you" might be the most powerful words in the English language.';

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...