Okay
  Public Ticket #1032016
change contact form field
Closed

Comments

  •  2
    Pasquale started the conversation

    How / where can I change the name of one of the contact form fields? Would like to change the "Subject" field to "Phone".

  •  850
    Jelly replied

    Hi,

    You can change it in: /elixir-jellythemes/inc/functions.shortcodes.php.

    Best Regards,
    Jelly Team

  •  2
    Pasquale replied

    Thanks. 

    Updated the /inc/functions.shortcodes.php as well as the /inc/mail.php with the new field name. 

    After submitting all the original field values are clearing except for the field I change type, id, name and placeholder. Where would I update the code to clear that field?

    Code in functions.shortcodes.php is now: <input type="tel" id="phone" name="phone" placeholder="' . __('Phone', 'jellythemes') . '" >

  •  850
    Jelly replied

    Hi,

    The clear you want mean remove it? I don't understanding it clearly when I don't do that custom.

    Best Regards,
    Jelly Team

  •  2
    Pasquale replied

    When I submit the form the values that were in the fields are cleared and the placeholder values are in their place. Fro example if in the Name field I had John, after submitting it will display Name.

  •  850
    Jelly replied

    Hi,

    Please open: js\default.js file, you will see the code liked below:

    /*Validation*/  
    $("#contactform").validate({
        submitHandler: function(form) {
            $(form).ajaxSubmit();
            $(form).find('.formSent').show();
            $(form).find('input[type=text]').val('');
            $(form).find('input[type=email]').val('');
            $(form).find('textarea').val('');
        }
    });
    

    Then change it to:

    /*Validation*/  
    $("#contactform").validate({
        submitHandler: function(form) {
            $(form).ajaxSubmit();
            $(form).find('.formSent').show();
            $(form).find('input[type=text]').val('');
            $(form).find('input[type=email]').val('');
            $(form).find('input[type=tel]').val('');
            $(form).find('textarea').val('');
        }
    });
    

    Let me know if it's working for you or not.

    Best Regards,
    Jelly Team

  •  2
    Pasquale replied

    Working. Thanks.

  •  850
    Jelly replied

    Hi,

    I am currently closing the ticket. Please don’t hesitate to submit a ticket whenever you need help. I will be happy to assist you.

    P.S. I would appreciate if you could please rate the Theme and like the assistance under my support, means a lot to me. Thank you.

    You can rate it with your themeforest account at your downloads page, precisely at this link: http://themeforest.net/downloads and hover over the 5 stars for our theme.

    Also, if you have linkedin account, please endorsements for me at this link: https://www.linkedin.com/in/locrabbirt/.

    Thank you so much for all your help!!!

    Best Regards,
    Jelly Team