Edit_form.php and checkbox

Edit_form.php and checkbox

by Fernando Muñoz -
Number of replies: 0

Hi, I created a custom block and now I want to add specific configurations for each instance where it is implemented, so I added in the edit form among other stuff this line:

$mform->addElement('advcheckbox', 'block_sitenotification', get_string('modoPrueba', 'block_sitenotification'));

but whenever I try it out it goes back to unchecked after refreshing, any idea on what it's wrong ? also I know how to get the config from settings.php, but how do I call the config I did on edit_form.php?

Average of ratings: -