Page 1 of 1

make custom button in list

Posted: Wed Dec 07, 2022 3:11 pm
by nanoLeinz

so my data has collumn thats called isDone (default value 0) with 0 or 1 for the value,
How can i make custom button to edit the value of 'isDone' to 1 when clicked


Re: make custom button in list

Posted: Wed Dec 07, 2022 3:22 pm
by arbei

You may use Row_CustomAction server event.


Re: make custom button in list

Posted: Wed Dec 07, 2022 4:05 pm
by nanoLeinz

so i need to make custom php file for example update.php with row_customaction function, and make button thats linked to the update.php?


Re: make custom button in list

Posted: Wed Dec 07, 2022 5:22 pm
by arbei

You may put your code in the server event directly, see the example in docs (see link above).


Re: make custom button in list

Posted: Wed Dec 07, 2022 7:15 pm
by nanoLeinz

Thanks sir, but i don't know how to make custom button and link the button to the func in row_customaction.
Could you tell me the docs to do that?


Re: make custom button in list

Posted: Wed Dec 07, 2022 10:41 pm
by mobhar

To create the custom button that related to the Row_CustomAction server event above, then you may simply use Page_Load server event; see Example 4.