Messages displayed in text Box

 4 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Chris Ross
Basic Member
Posts: 6
Basic Member

Can someone provide me with the script to display the messages from the bottom left hand corner of the screen into a text box?

wilcoxmad
Veteran Member
Posts: 87
Veteran Member
Assuming you set up a text box to hold the message and it is text165 this should work;

function FORM_OnAfterTransaction (data)
{

sMsg=lawForm.getMessage();
lawForm.setFormValue("text165",sMsg);
}
Chris Ross
Basic Member
Posts: 6
Basic Member
Perfect. How I could then manipulate the font size and color?
Terry P
Veteran Member
Posts: 234
Veteran Member
What I do is instead of making it a "text field", make it a "label field" instead. You can still put data into it, but then you can use the field properties to change the color, font, etc.
David Williams
Veteran Member
Posts: 1127
Veteran Member
This works with some versions of Design Studio:
var txt36=lawForm.getFormElement("text36")
txt36.style.border = "1px solid black"
txt36.style.textAlign = "center"
David Williams