caadmin

Adding Conditional checkbox to htmpl Page

Discussion created by caadmin on Jun 20, 2016
Latest reply on Aug 19, 2016 by JussiValkonen

Hi All,

 

We are trying to add conditional checkbox in detail_chg.htmpl page where we want to display a date field on checking a checkbox.

For this we tried using logic from detail_pcat.htmpl page. The logic for displaying field is working fine but once we uncheck the checkbox the contents from date field are not getting cleared.

 

( e.g. When we check the checkbox "Temp Change" the 'From date' and 'To date' fields get displayed. where we can enter dates in those field. But on unchecking the checkbox the dates are not getting cleared. Even though we uncheck the checkbox and save the change, it is displaying entered date as it is).

 

But we want this date to be cleared after unchecking the checkbox.

 

Does anyone knows the logic to achieve this ?

If yes, please guide us.

 

Thanks.

Rahul Mule

Outcomes