14
Views
4
Comments
How to set only one time clicked for a checkbox
Question

Hi, how to make a checkbox clickable only once and then disable it after it's clicked?

2024-03-22 09-17-23
Chandra Vikas Sharma

hi Mur,

in your checkbox container click  and set Boolean variable of enabled property and set false when u click on checkbox .

thanks 

cv

2022-09-21 06-26-50
Priya Agarwal

Hi, 

Set the checkbox enabled property to false, in the handler of Onchange event.



2024-03-23 18-16-49
Bryan Villalobos

Hi @Nur Liyana Zahirah Mohd Nazri ,


Is the default value of your checkbox unchecked (0)?

Although having a variable that will be used in the Enabled will work, it will be back to enabled if you refresh the page or if you go back to the page in the future.

I would suggest that you use the value of the checkbox in the Enabled.

Enabled = not IsChecked

BUT, if it can be checked initially and then unchecked (and disabled later), you might need to save the status if it was already clicked.

If you don't need any of these and just want to disable it at that point, then you can use the ones suggested above.

Regards,

Bryan

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi  Nur Liyana Zahirah Mohd Nazri,

Below I attached sample OML you can check how to implement that functionality.


Hope this helps you!!


Regards,

Rajat

TestingDemo.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.