How can I check if in a textbox the last character is a questionmark? | XM Community
Skip to main content
Is it possible to validate on the last character of a text entry field? The entry is only valid if the last character is a questionmark (?).
Use custom validation, must match regex with the regex `.*\\?$`
Thanks Tom, this works!
@Nico_Leussink , it may be achieved through javascript.



Store text value in some variable(let text_input) and check if charAt(text_input.length - 1) == '?'

Leave a Reply