You are viewing limited content. For full access, please sign in.

Question

Question

Add percentage sign in front of field?

asked on May 14, 2014

 I was wondering if it was possible to customize a field to have a percentage symbol on the left or right of the input field in a form.

 

The idea being that we have are populating fields from a database and one value is a percentage. It would be nice to have that field look like how the currency field does with the money symbol in front of the field. 

0 0

Answer

APPROVED ANSWER
replied on May 14, 2014 Show version history

The easiest way to do this is to enter the % symbol in the Text below field setting for the field and then use a CSS rule to change its display.

 

#q10 .cf-helptext {display: inline;}

Substitute the appropriate field ID for #q10.

 

Using the Text above field setting instead floats the help text to the left of the input box.

2 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.