Hi folks,
Just wonder if you can/how you store text in variables with some degree of formatting.
The problem - my user selects, for example, I own a "dog" and gets the variable text:
We see that you own a dog. We'd like to sell you a bunch of crap for the purposes of making a bunch of money off of your affinity with your animal. This example is deliberately several lines long so you can get my point and included arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text"
i.e. while the variables are useful for storing "canned text" as it were, the layout on integration is not great;
so can we
Store the text in variables with line breaks/new sentence breaks included, so that our text above would readL
We see that you own a dog.
We'd like to sell you a bunch of crap for the purposes of making a bunch of money off of your affinity with your animal.
This example is deliberately several......................
so that it is more useful on reintegration.
Fyi --In our form once the list selection is made the variables values (the canned text) are assigned to textbox.
Any pointers appreciated. Mostly if we could get clean sentence breaks that would be a good start
Solved! Go to Solution.
Views
Replies
Total Likes
Is this the effect you are after?
Here is one approach.
// form1.page1.subform1.bodyText::calculate - (JavaScript, client)
if (form1.page1.subform1.pet.isNull) {
this.rawValue = null;
}
else {
this.rawValue = "We see that you own a " + form1.page1.subform1.pet.rawValue + "." + "\n\n"
+ "We'd like to sell you a bunch of crap for the purposes of making a bunch of money off of your affinity with your animal." + "\n\n"
+ "This example is deliberately several.....................";
}
Steve
Views
Replies
Total Likes
Is this the effect you are after?
Here is one approach.
// form1.page1.subform1.bodyText::calculate - (JavaScript, client)
if (form1.page1.subform1.pet.isNull) {
this.rawValue = null;
}
else {
this.rawValue = "We see that you own a " + form1.page1.subform1.pet.rawValue + "." + "\n\n"
+ "We'd like to sell you a bunch of crap for the purposes of making a bunch of money off of your affinity with your animal." + "\n\n"
+ "This example is deliberately several.....................";
}
Steve
Views
Replies
Total Likes
Thanks Steve,
I was trying to wrap it all up into one variable as it were (formatting included) but this will work nicely too.
cheers
Views
Replies
Total Likes