Answered
i have a small field with multiple line
will be something like
Specified:____________
______________________
______________________
______________________
so i need the text on the first line to start after the "specified" and then go to the beginning on the second line and so on
any help will be apreciatted
First and foremost, if you fill out the form on screen the "writing lines" are not needed. However, when you fill it out after printing a blank form, they are.
One way to deal with this is therefore to place the writing line far enough below the base line of the label ("Specified") that it can be covered by a text field, without obstructing the label. Then you set the text field to multiline and set the background color to "white". In the format event of that field, you then add the following script:
if (event.value.toString().length > 0) {
event.target.fillColor = color.white ;
} else {
event.target.fillColor = color.transparent ;
}
Now, when the field is blank, the lines are visible, otherwise, they are not.
The other possibility is to include the "Specified: " text into the field's value. To begin with, set "Specified: " as the default value of the field, which is now covering the whole area available. In the Format event, you will then add the "Specified: " text in front of the event.value. And that gives the same effect. If you want to keep the writing lines, for the blank form, combine this with the code above.
Hope this can help.
Max Wyss.