I just made a first update to a v2 SharePoint form I had created with the V3 editor, and it removed the formatting I had on numbers (using a number field to capture phone numbers) and re-added commas to the field.
In the new designer, how do I format number fields to remove commas?
Hi @Gabe_Giacomo,
Try using the Masked input field with this mask: (000) 000-00000
Make sure to assign the value of the masked input to the number field before saving the form like this:
fd.spBeforeSave(() => {
fd.field('Number').value = parseInt(fd.field('MaskedInput').value.replace(/\D/g, ''));
});
1 Like