Activate or deactivate fields based on conditions - Forum - Rollbase - Progress Community

Activate or deactivate fields based on conditions

 Forum

Activate or deactivate fields based on conditions

  • Hi ALL
    I have a query and would like to know a way to do the following

    if the FUNDING STATUS =  xyz  or yyy  then i need ACCOUNTING to turn into a non clickable field or VANISH completely (whichever is easier) from other object

  • You can do this using client-side JavaScript.

  • Hi Mysteryminds,

    I think this thread can help you...

    https://community.progress.com/community_groups/rollbase/f/25/p/16235/58182.aspx?Redirected=true#58182

    Regards,
    Ricardo
  • Ricardo

    I've tried that multiple times and I don't see it working.

  • Hi mysteryminds,

    try this:

    if ("{!fundingstatus#code}" == "xyz") {

    $('#rbi_L_accounting').hide();
    $('#rbi_F_accounting').hide();

    }

    It will hide the label and value for account field.

    Regards,
    Ricardo
  • thanks ricardo