Forums / Developing Portals / Invalidated text field programmatically ?.

Invalidated text field programmatically ?.

2 posts, 0 answered
  1. alex sunny
    alex sunny avatar
    2 posts
    19 Feb 2021
    22 Feb 2021
    Link to this post

    I have a text box for the password confirmation on a form. If the textfield (last known password) and the textbox (password confirmation) do not match, is it possible to invalidate the last known password field in order to prevent form submission and display errror message ?

  2. Andre B
    Andre  B avatar
    14 posts
    10 Mar 2020
    23 Feb 2021 in reply to alex sunny
    Link to this post
    Hi Alex,

    Thank you for your question. Depending on if the last known password is assessible on the client side, you might be able to validate the input with some custom JavaScript. However as it could be considered sensitive information, it might b better to do the validation on the server side or a combination of both.
    Below I've provided a link to some about the form submission event:

    Hope this helps!
2 posts, 0 answered