Skip to main content
Participant
March 7, 2016
Question

Is it possible to indent the first line of a multi-line form field?

I have a form that contains a multi line form field.  What I'd like to accomplish is to make the first line begin indented, and the rest of the lines be full width.  Is this possible without creating a separate field for the first line?

Ce sujet a été fermé aux réponses.

1 commentaire

try67
Community Expert
Community Expert
March 7, 2016

Yes, but it's a bit tricky.

Apply this code as the field's custom Format script to achieve it:

if (event.value) event.value = "\t" + event.value.replace(/^\s+/, "");