Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #187005

    Text entry fields in forms do not allow the user to edit their previously typed entries. Instead the user must completely retype the text in order to change their entry.

    This is on a form created by a third-party plugin but it only happens using the Corona theme.

    http://test2.cadlearningcenter.com/jobs/add/

    Enter in some text for the “Title” field -> Press “Preview” at the bottom of the form
    When you get the message: “There are errors in your form. Please correct them before proceeding.”, try and change the text in the “Title” field.

    It will revert back to the default “suggested” entry text (i.e. text hint), and you will not be able to change whatever was entered in previously.

    Can you help me.

    Thanks,
    Brian Hagerty

    #187586

    Hey Brian!

    Add this at the end of js/avia.js:

    jQuery(".wpjb-field input").unbind("focus");

    Regards,
    Josue

    #187596

    Josue,

    Am I supposed to add that at the very end of the js/avia.js file, or is it supposed to be placed inside one of the existing functions in the JS file?

    I tried placing it at the end of the file, but the problem still exists.

    Thanks,
    Brian

    #187629

    Hi Brian,

    Can you create an administrator account and post it here as a private reply?

    Regards,
    Josue

    #187898
    This reply has been marked as private.
    #187952

    Hi!

    We need an administrator account.

    Regards,
    Josue

    #187981
    This reply has been marked as private.
    #187999

    Hey!

    It is done, it needed to be wrapped in a ready function, here’s the final code:

    jQuery(function() {
        jQuery(".wpjb-field input").unbind("focus");
    });

    Cheers!
    Josue

    #188005

    It works in Internet Explorer, but it still does not work in Google Chrome.

    Thanks,
    Brian

    #188009

    Hi!

    I did it in Chrome, flush your cache and check it again.

    Regards,
    Josue

    #188176

    Josue,

    • So, what exactly did you do?
    • Why was the problem happening?
    • How does you’re solution work and interact with what already exists? (existing code)
    • What else did you change (if anything)?
    #188189

    Hi!

    What i did was to unbind the ‘focus’ function from the input fields of that form.

    http://api.jquery.com/focus/

    http://api.jquery.com/unbind/

    Just added that to js/avia.js (at the very end).

    Cheers!
    Josue

    #188220

    Can I copy/move that bit of code to my own plugin so that it won’t get erased or lost when the theme is updated?

    Thanks,
    Brian

    #188226

    Hi!

    Yes, you’d need to move this piece of code to the .js file of your plugin:

    jQuery(function() {
        jQuery(".wpjb-field input").unbind("focus");
    });

    Cheers!
    Josue

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.