Making number input in USD currency ($100,000.00)

@miguelbuyme It depends on what exactly you wish to do.
In my opinion it’s not a good idea to manipulate the user input while they typing because it’s confusing. But if you want it anyway you can put a text input, limits its characters (using regex) to digits, commas, and a leading $ symbol only only.
And do something like:

const input = $w('#input187');
input.onInput(()=> {
const val = Number(input.value.replace('$','').replaceAll(',', ''));
input.value = val.toLocaleString('us-En',{style:'currency', currency:'USD'});
})