How to add a custom button in event form using custom script

How to add a custom button in event form using custom script that can add 2 data type field and 1 long text type field when we press it