Your address will show here +12 34 56 78

Home Forums Agent Contact Form flow and behavior (technical)

This topic contains 0 replies, has 1 voice, and was last updated by  Anna 3 years, 3 months ago.

  • Author
  • #41898


    Here is the flow

    on this

    is pressed on agentcontact form

    the event click is triggerd on control js

    $('#agent_submit').click(function(){ - at line 1124

    in the function the ajax call the php function ajax_agent_contact_form that is on functions.php on line 800

    the function reply when email is sent with
    echo json_encode(array('sent'=>true, 'response'=>__('The message was sent !','wpestate') ) );

    and in control.js on success : the sent message is displayed and form is cleared

You must be logged in to reply to this topic.