set textbox type of Custom field and encode value when saved

I have added one custom field in user module from studio and added that field in edit form layout
As this field contains secure information, I need following things to do

  1. Set this custom field textbox’s input type -> password
  2. When user is created, save value in encoded format into database

Can anyone help me or guide me with this?

Thanx :slight_smile:

Hi Vidhi,

You can use before_save logic hook to encode value before storing it in database.
Same way, you can use after_retrieve logic hook to decode that value.


1 Like