Forum Discussion
JohnThomas
8 years agoQrew Cadet
If there is any native quick base option Please let me know that one
Other wise using javscript we can do this one
$("#_fid_45").keyup(function() {
let val = $(this).val();
if(val.length > 5) {
let digits = val.split(/(\d{1,5})/);
let str = "";
for (let group of digits)
{
if (/^\d+$/.test(group))
{
str += group + "-";
}
}
str = str.substring(0, str.length - 1);
$(this).val(str);
}
});
Insted of _fid_45 give your fid Id
Other wise using javscript we can do this one
$("#_fid_45").keyup(function() {
let val = $(this).val();
if(val.length > 5) {
let digits = val.split(/(\d{1,5})/);
let str = "";
for (let group of digits)
{
if (/^\d+$/.test(group))
{
str += group + "-";
}
}
str = str.substring(0, str.length - 1);
$(this).val(str);
}
});
Insted of _fid_45 give your fid Id
AngelAngel
8 years agoQrew Assistant Captain
How and where are you referencing this JS?
So I am assuming you create a Formula Text field with HTML enabled and writing this piece of code? But where are you calling it from?
So I am assuming you create a Formula Text field with HTML enabled and writing this piece of code? But where are you calling it from?