Activate or deactivate fields based on conditions

Posted by mysteryminds on 19-Mar-2015 17:36

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

All Replies

Posted by pvorobie on 20-Mar-2015 12:01

You can do this using client-side JavaScript.

Posted by Ricardo Rafols on 20-Mar-2015 12:27

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

Posted by mysteryminds on 20-Mar-2015 14:52

Ricardo

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

Posted by Ricardo Rafols on 20-Mar-2015 17:17

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

Posted by mysteryminds on 23-Mar-2015 09:34

thanks ricardo

This thread is closed