<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: custom javascript to formfield</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: custom javascript to formfield</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:30:18 +0000</pubDate>

<item>
<title>paulopdenkelder on "custom javascript to formfield"</title>
<link>https://www.machform.com/forums/topic/custom-javascript-to-formfield#post-13963</link>
<pubDate>Mon, 19 Mar 2012 02:18:57 +0000</pubDate>
<dc:creator>paulopdenkelder</dc:creator>
<guid isPermaLink="false">13963@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I figured it out...found some related advice in other posts!...
&#60;/p&#62;</description>
</item>
<item>
<title>paulopdenkelder on "custom javascript to formfield"</title>
<link>https://www.machform.com/forums/topic/custom-javascript-to-formfield#post-13794</link>
<pubDate>Tue, 13 Mar 2012 02:09:11 +0000</pubDate>
<dc:creator>paulopdenkelder</dc:creator>
<guid isPermaLink="false">13794@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I want to add a custom javascript to a formfield (number).&#60;br /&#62;
In a number field I would like to change comma's into dots directly when typed. So when someone types 30,4 it changes to 30.4 automatically.&#60;/p&#62;
&#60;p&#62;This is the javascript:&#60;/p&#62;
&#60;p&#62;&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
function commadot(that) {&#60;br /&#62;
if (that.value.indexOf(&#34;,&#34;) &#38;gt;= 0) {&#60;br /&#62;
that.value = that.value.replace(/\,/g,&#34;.&#34;);&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
&#38;lt;/script&#38;gt;&#60;/p&#62;
&#60;p&#62;Where can I place this script?&#60;/p&#62;
&#60;p&#62;To the formfield itself I guess I have to add something like: onkeyup=&#34;commadot(this)&#60;/p&#62;
&#60;p&#62;Where to add this?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
