• Hi there,

    I’ve come across a problem during term creation and want to make a proposal.
    The problem is that in the process of term creation in backend (/edit-tags.php) not all fields will be cleared after the form submit.

    I’ve a numeric field that I want to be cleared as well.

    Currently the code in tags.js:140 will only clear textareas and text inputs
    $('input[type="text"]:visible, textarea:visible', form).val('');

    Within this process, the form is validated and text fields / -areas are cleared.
    I won’t clear my custom field without validating the form again.. which is not possible anymore because the other fields are cleared.

    I think a fix like this would do the job.
    $('input[type="text"]:visible, input[type="number"]:visible, textarea:visible', form).val('');
    A class like .js-clear-after-submit-success could also the job to be able to clear other kinds of fields as well.

    Do I’ve to create an pull request for that on github?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can create a Trac ticket for enhancement requests. I hope you realize such things can take some time to be realized, if accepted at all. In the interim you can override the core JS with your own version. It’s a little inefficient, but not that big a deal in the overall scheme of things.

Viewing 1 replies (of 1 total)

The topic ‘Adding new custom term will not clear numeric (custom fields)’ is closed to new replies.