Background Coloured Box Using Shrink

Modified on Tue, May 7 at 10:21 AM

Is it possible to create a colored box around variable where the box adjusts/scales automatically depending on the number of characters entered?


Answer

1. I set the "backgroundcolor" to Black --->DeviceCMYK=0 0 0 1
2. I set the fillcolor to Yellow --->DeviceCMYK=0.170 0.040 1 0
3. I added the command status: --->value: shrinkleft

4. Add postfix and prefix using <space> <space> to add some extra buffer


See sample: https://live.w2pstore.com/Store/Default.aspx?PUID=d5e2f9bf2838479cac6f5f761f38ee10&Guest=1&CUR=dab7b478fc244d0b8955845f924ab8d7


Attachments (1)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article