In a text field, under format, you have the option of “Custom” and a blank field appears underneath it. This field is greyed out for all other format options. What can be added in this field to indicate the “custom” format?
Hi Laura, when you choose the custom format, the blank field will allow you to type in the area. In this area, whatever you type becomes what the text that the text input field has to match.
ie, if in the blank field under the ‘custom’ format, you type the word “Hello”. When you preview your form, if the word “Hello” is not in the text input box, the field will have a red outline, and when the mouse hovers over the field, it will display a message which states that the field is invalid.
Hi Laura, If you chose ‘none’ for the format in the example you specified above, then you would be able to enter any of these characters. In the current product, unfortunately, there is no way to say a-z, symbols and NO NUMBERS. I will raise this to see if it can be included in the product.
Can you give us some practical applications of this feature? It seems that this is a static comparison. I could see something like this being useful if it had a regex capability, but not as is. Please enlighten us!
It is how you see it ‘static’ comparison. but what do you mean ‘regex’ capability ? if you want to control what users enter in a field look at the masked text input for instance? that is more commonly used
I mean to where you could put a regular expression in that field and create any kind of variable format. And yeah i think for most things the masked input would suffice but if the format property supported regular expression that would be awesome. I myself would find tons of uses for that.
Just got to reading through all the functions and found the search function. That looks like it works similarly to regular expression. It doesn’t look like it has full regex support though. I’m looking for something that I could take a pattern like ones listed here – //regexlib.com/DisplayPatterns.aspx – check if some text matches the pattern.