Technical notes about OctoberCMS a Laravel CMS. Notes are written by inetis team, a Swiss webagency

Do you manage multiple websites? Try our OctoberCMS monitoring solution

<- Back

How to add input masks to the backend

Posted on by

jquery.inputmask is a jQuery plugin which create an input mask. An inputmask helps the user with the input by ensuring a predefined format. Follow this tutorial

Download the js Library from and copy it to the asset directory of your plugin. plugins/inetis/myplugin/assets/js/jquery.inputmask.bundle.js

Add the library to the controller

class Houses extends Controller

public function __construct()

in the main js file of your plugin add:


and the magic in your fields.yaml file

    label: ''
    type: text
        data-inputmask: "'mask': '999 999 99 99'"