Input Mask for Variable Number of Characters

  • JoshS
    Asked on May 20, 2025 at 5:52 PM

    How would we go about configuring an input mask for a variable number of characters? For example, if I wanted to do an IP address, '###.###.###.###' wouldn't exactly produce the outcome I want, because I would need to insert leading zeros.

  • JoshS
    Replied on May 20, 2025 at 5:57 PM

    Please disregard this question. After a bit of digging, I found the appropriate mask for my needs:

    #[#][#].#[#][#].#[#][#].#[#][#]

    Surrounding a set of mask characters in square brackets makes them optional.

Your Reply