Would it be possible to add a Prefix and Postfix field similar to how it is done with the Number component in the Webform module and have it display with the calculated value?

E.g. Form author can add a $ sign to be prefixed in front of a calculation that involves dollars.

Here are the field descriptions from the Number component in the Webform module:

"Prefix text placed to the left of the field
[field]
Examples: $, #, -."

"Postfix text placed to the right of the field
[field]
Examples: lb, kg, %."

Thanks Rafal!

Comments

rafalenden’s picture

Status: Active » Fixed

Hi srutland,
this was fixed in 7.x-2.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

netikseo’s picture

Hmm, I'm using 7.x-2.0-alpha2 and there is no prefix or postfix

rafalenden’s picture

netikseo, because this fix is included in dev version of the module.

upperholme’s picture

Using the dev version downloaded today (June 11 2015), I can see that the prefix is included in the HTML, but has display:none set, so is not being shown by default.

upperholme’s picture

Status: Closed (fixed) » Active

Update: I'm seeing that the prefix is displayed when the label is set to be above the field, but is not displayed when the label id set to be Inline.

colemanw’s picture

Status: Active » Fixed

This was addressed when I changed the form field markup; should be fixed now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.