How to make a UI action which changes a field's value to false?

Csaba B_rsics
Tera Contributor

There is a button on my form, and if I click that I want to set one of my field's value to "false". 

 

I made this short code, but it doesn't work

current.active="false";
current.update();

 

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hey,

Please let me knwo on which table are you trying to do this and second thing please try below code if its a check box field 

current.active=false; //assign boolean value instead of string

current.update();

Please mark my answer helpful if it helps you

View solution in original post

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

Hey,

Please let me knwo on which table are you trying to do this and second thing please try below code if its a check box field 

current.active=false; //assign boolean value instead of string

current.update();

Please mark my answer helpful if it helps you

Hello @Csaba Bársics ,

Hope you are doing good 

i see you marked my answer helpful .Thanks for that 
 
Can you please mark my answer correct and close the thread if it helped you ?

@Csaba Bársics  if my answer helped you please mark my answer correct and close the thread .It removes the question from un solved list and will be helpful to people with same query

Mohith Devatte
Tera Sage
Tera Sage

@Csaba Bársics  please mark my solution correct if it helped you and close the thread so that it will be helpful for others users with same query