Hooks not working and no work around found..

Hey thank you so much for your advice. Here is an example of what I want to do, In example I try to change email address but hooks don’t work
export function NannyRegistration_beforeInsert(item, context) {
//TODO: write your code here…
let hookContext = context;
item.email="alpha@mail.com";
return item;
}
Actual Problem: When a check box is selected, I want to check it and replace its true or false with a string and store it in the database. Later I will take these values from database and display in a text area.