Multiline textbox

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 11 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
ouchris
Posts: 5
Last visit: Fri Apr 19, 2013 12:34 pm

Multiline textbox

Post by ouchris »

HI, I see that you can set a text box to "multiline: true" but when I run the file and try to enter more than one line of input it doesn't seem to do what I want. Yes, it lets you enter one long string of text in multiple lines but I want to be able to enter one line of text, hit enter, then enter a 2nd line and so on and capture each line as a variable.

Is this possible?

thanks!
User avatar
imigj1
Posts: 18
Last visit: Tue Oct 12, 2021 7:16 am

Multiline textbox

Post by imigj1 »

You should be able to hit return and add text on new lines when multiline: true. You'll have to split the variable I do this on a few forms.

$user = -split $users
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Multiline textbox

Post by davidc »

If you set the form's AcceptButton it will trigger the button even with typing in the TextBox. In this case you will need to press Ctrl + Enter; otherwise it should work with a normal Enter press.

David
David
SAPIEN Technologies, Inc.
This topic is 11 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.