JimO

Controlling Textarea font size

1 votes
Greetings There has to be an easy solution for this, but I can't figure it out. I have a textarea or textbox that fills an entire page. Once the user adds text and signs the corresponding signature for that field, the field renders the text proportional to the total space of the textarea. So, for instance, if the user adds one word for the textarea it is rendered in a huge font and fills the entire page. Which looks stupid. what is the solution to this? Thanks Jim

Reply to: Controlling Textarea font size

0 votes
Hey Jim, Unfortunately, there is no control of the font sizing since it performed at the doc engine level. What I can suggest is to retrieve the user input beforehand (e.g. through a form field) and then pass that information to eSignLive to create your textfield/textarea with the appropriate size.
Haris Haidary OneSpan Technical Consultant

Reply to: Controlling Textarea font size

0 votes
Hi Haris Here's my issue. I'm already prompting for the data beforehand, but I'm writing text to the field after another user has already signed, but before the signature associated to this field is signed. I'm able to write text to the field using a REST Post. But I'm unable to change the field's height and width using REST or the API. The only thing that sort of works is to write a bunch of "&nbsp" after my text. Can you think of any other possible solution? Thanks Jim

Reply to: Controlling Textarea font size

0 votes
Hey Jim, The reason why you are unable to change the field height and width is because your package is in SENT status (i.e. the signing ceremony has started). Therefore, no editing of the signatures/fields can be done. If you are grabbing the data beforehand, then there is a couple other suggestions I can make:
  1. Create an textfield/textarea of appropriate dimensions during package creation and fill-in the data once the first signer has signed.
  2. Once the first signer has signed, change the status of your package to draft. Then, resize your textfield/textarea based on the data and resend your package.
  3. You can use eSignLive's field injection feature to stamp the text directly on your document. More information on this here: https://developer.esignlive.com/guides/feature-guides/field-injection/
Haris Haidary OneSpan Technical Consultant

Reply to: Controlling Textarea font size

0 votes
Hi Haris Per your suggestions: I'm doing 1. I was unable to get 2. to work. I found that I can modify a textarea before a user has signed, and the document is in draft mode, using eslClient.ApprovalService.ModifyApproval. After a user has signed, I don't get an error, but no change is saved. Can you show a code example on how to get this to work? For option 3. help says "Note that currently injecting data into a document, using eSignLive, can only be done when uploading your document and can only be done through the API/SDKs.". This leads me to believe this will not be possible after a signature, is true? as a work-around I was able add text to the textarea's value, after a signature, using a REST post. To fix the weird text sizing (i.e. a one word value is really big, and a long paragraph value is really small and shown on one line), I did these 2 things. For short text I add a proportional amount of “&nbsp" after the sentence. For long text I add "\n" where the end of the line needs to be, in this way I get multiple lines. Hoping that there is a better solution. Thanks Jim

Reply to: Controlling Textarea font size

0 votes
For 1, I think he's meaning at package creation time. So, if you've already collected the data, you know how long the text is, so you can size the fields based on this knowledge. Do you know the values that will be in the fields prior to creating the package? For 2, I'd have to test this out to make sure it works. For 3, you are correct, this would have to be done at the time of upload. In the meantime, I'll look at #2. Let me know about #1.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Controlling Textarea font size

0 votes
Hi Michael Thanks for your help. I do not know the values of the fields prior to creating the package. So if you can get #2 to work, that would be great, else I'll live with my work-around Jim

Reply to: Controlling Textarea font size

0 votes
For #2, I'm seeing the same as you. I can modify before anyone has signed. After this, modifications don't happen, but there is no error. If you don't know the value before creating the package or cannot at least gather it before allowing anyone to sign, your workaround may be the only way to do this, right now. Could you email [email protected] and file a bug for this? Reference this forum post when you do so. The text in a TextArea field should not blow up like that to fill the space.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off