-
SoftTissuesAnswered on May 26, 2021 05:59 AM
I'm trying to insert a '$' before a field. Whatever I try seems like it doesn't work.
In this form: https://www.jotform.com/211108961559156
I tried the following, none of it worked:
.totalDue:before{
content:"$";
}
.q171_totalDue:before{
content:"$";
}
#input_171:before{
content:"$";
}
.q171_totalDue:before{
content:"$";
}
-
Michael JotForm SupportAnswered on May 26, 2021 09:13 AM
If this is what you are trying to accomplish,
please try injecting the custom CSS codes below into your form.
div#cid_171:before {
content: "$";
}
Feel free to let us know if you need any further assistance.
-
SoftTissuesAnswered on May 26, 2021 10:55 AM
Is there any way for me to put the $ sign inside of the "Total due" box, before the number?
-
Alexander JotForm SupportAnswered on May 26, 2021 12:57 PM
Hello,
If I understood your request correctly - you may add a dollar sign in the calculation field before the calculation:
Result:
Related guide: 👉 How to Perform Form Calculation Using a Widget
Thanks,
Alex
-
SoftTissuesAnswered on May 27, 2021 12:52 AM
Thank you. how would I do that for the Stripe integration?
It would also be nice if I can remove the "USD" at the end.
-
Patrick_RAnswered on May 27, 2021 05:29 AM
Hello!
1. You can't put a $ sign in the Stripe payment field as this is not supported.
2. We can remove USD by using the following CSS code:
#cid_194 > div > div.product-container-wrapper > span > span{
display: none;
}
Please use these instructions to insert this code into your form. Make sure to place this at the end of your existing CSS code.
Thank you!
-
brfiAnswered on June 16, 2021 03:19 AM
How would I insert the '$' on a "number" element?
Using https://www.jotform.com/211108961559156, input ID #input_171 as an example.
-
Patrick_RAnswered on June 16, 2021 05:59 AM
Hello Charles! I'll reply to your query here: https://www.jotform.com/answers/3163682
Thank you!