C
C
Cheizer2018-07-17 12:11:32
MODX
Cheizer, 2018-07-17 12:11:32

MODX REVO how to make an entry in a js file?

Greetings friends, a completely non-standard task, I don’t even know from which side to approach, the site is on MODX REVO, the site has forms that are sent by AJAX, all logic is stored in the js file that is connected at the bottom of the page. Here is how the form is submitted

$(window).load(function () {
    $('#form').forms({
        ownerEmail: '',
        product: 'ЗАКАЗ ОБРАТНОГО ЗВОНКА'
    })


I make this js call on the page, but in this case it’s good, the user’s Email is available for pdoField, but the problem is that Email is eventually visible in the page source code, and is available for spam bots, if this code is inserted into the JS file, then pdoField The user's email will not be available for sending, how can this be done?
What are the options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2018-07-17
@Sanes

Formit than does not suit?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question