Forums

Forums / Developing Portals / Unhide Text Field and set it to required

Unhide Text Field and set it to required

2 posts, 1 answered
  1. Ali Shabar
    Ali Shabar avatar
    1 posts
    Registered:
    02 Nov 2021
    Answered
    07 Feb 2022
    Link to this post
    Hi, 
    I'm using TPC version "6.0.7629.145", and trying to unhide a text field and set it to required, I used tpc.forms[0].field_developer_name.required(true) and got this error Changing the required status for "field_developer_name" field has not been enabled, so I tried tpc.forms[0].field_developer_name.enable() and that did not help.
    looking forward for your help,
    Thanks.
  2. Brady Ward
    Brady Ward avatar
    92 posts
    Registered:
    19 Aug 2021
    08 Feb 2022 in reply to Ali Shabar
    Link to this post
    Hello Ali,

    To be able to change the client-side requirements, you need to check the Client-Side Required checkbox in the edit menu of the specific field. If it should be optionally required, you will need to use the Rules Manager widget or continue using custom JS to remove the requirement.

    Let me know if you have any questions,

    Brady
    TPC Web Developer
    Last modified on 08 Feb 2022 15:02 by Brady Ward
2 posts, 1 answered