Form Autofill

To find the place where you have to add the autofill codes,
you will need to go to your layout configuration.

first, click on the "my layouts" button on the left-hand menu,
then click on the layout > page > Page Head Script. 

Check the next screenshots showing where to find it: 

- Save data code:

<script>
    $('[data-tag="emailmkt"]').on('submit',function(e){
        var objEmail = {};
        
        $($(this).find('input')).each(function(i,element){
            if($(element).attr('name') == 'EMAIL'){
                objEmail['EMAIL'] = $(element).val();
            }
            if($(element).attr('name') == 'FNAME'){
                objEmail['FNAME'] = $(element).val();
            }
        })
        localStorage.setItem('emailmkt',JSON.stringify(objEmail));
    })
​​​​​​​
</script>

- Receive and Fill Form Code:


<script>
    var dataMailmkt = JSON.parse(localStorage.getItem('emailmkt'));
    $('[data-tag="receiveform"]').find('input[name="FNAME"]').val(dataMailmkt['FNAME']);
    $('[data-tag="receiveform"]').find('input[name="EMAIL"]').val(dataMailmkt['EMAIL']);

</script>