Forums

Forums / Developing Portals / Invalidated text field programmatically ?.

Invalidated text field programmatically ?.

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

    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 ?

    thanks
    alexsunny
  2. Andre B
    Andre  B avatar
    14 posts
    Registered:
    10 Mar 2020
    23 Feb 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: 
    https://www.crmportalconnector.com/developer-network/documentation/developing-for-tpc/portal-form-submission-events

    Hope this helps!
    Andre
2 posts, 0 answered