![]() |
Graphix 1/29/2014 |
in edit page, how to disable or hide the standard "save" button based on a value in database field (not a field value in form)? for example : if field value = 1, hide the save button. if field value = 0, show the save button I tried to use the following code in edit page before display event but not work
|
![]() |
Graphix 1/29/2014 |
Hi Romaldus I think you should be addressing '$values' not '$data' try this code: if ($values["VOTE"] !== '0') { $xt->assign ("save_button", false); } I have used '!==' because '!==' should match the value and data type '!=' just matches the value ignoring the data type regards Kevan
|
![]() |
romaldus author 1/29/2014 |
many thanks kevan. it works now with your code. Problem solved. |
![]() |
Graphix 1/30/2014 |
many thanks kevan. it works now with your code. Problem solved.
|