Web Form Builder Currency - Post ID...

User 2088758 Photo


Senior Advisor
3,121 posts

Thanks Eric!
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 2795610 Photo


Registered User
5 posts

Eric, I want to do this same thing, but can it be done for a form hosted and published directly to the S-Drive using Web Form Builder? How can I upload the jquery.formatCurrency-1.4.0.js to the forms directory? I cannot locate the forms directory. Thank you for your help and forgive my ignorance.
User 187934 Photo


Senior Advisor
20,271 posts

Yes, you can use direct ftp or your S-Drive dashboard to upload the Currency plugin to your S-Drive account. Then change the script link, on the form, to absolute.
Adjust this to your actual file location
<script type="text/javascript" src="http://my-s-drive-account-domain.com/jquery.formatCurrency-1.4.0.js"></script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2795610 Photo


Registered User
5 posts

Eric, thank you so much for your quick reply. I added an HTML element to my form with the following.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script type="text/javascript" src="http://accurate.coffeecup.com/js/jquery.formatCurrency-1.4.0.js"></script> <script type="text/javascript">$(document).ready(function()
{
$('#MonthlyPremium').blur(function()
{
$('#MonthlyPremium').formatCurrency();
});
});</script>


I uploaded the script to http://accurate.coffeecup.com/js/jquery.formatCurrency-1.4.0.js
and the name of the text field is MonthlyPremium.

I tried it in the preview and published it live and it still doesn't seem to work in either. Do you think something else in my form may be conflicting? There was no other HTML elements that I added, only this one. Does anything stand out to you that would prevent this from working? Would it be that MonthlyPremium is a text field? Should that be setup as a different type? Thanks in advance for your assistance.
User 187934 Photo


Senior Advisor
20,271 posts

Can you share a link to the form your trying to use it on?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2795610 Photo


Registered User
5 posts

I tried replacing 'MonthlyPremium' with 'item16_text_1' as well to no avail.
User 187934 Photo


Senior Advisor
20,271 posts

Try this.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://accurate.coffeecup.com/js/jquery.formatCurrency-1.4.0.js"></script>
<script type="text/javascript">

$(document).ready(function(){
$('input[name=MonthlyPremium]').blur(function(){
$('input[name=MonthlyPremium]').formatCurrency();
});
});
</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2795610 Photo


Registered User
5 posts

That did it! Thank you so much for all of your help. I greatly appreciate it.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.