WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
FEE Field Validation and Custom Field editor (1 post)

  1. andradenation
    Member
    Posted 3 years ago #

    Hi:
    I have a couple of questions regarding the FEE.

    Firstly, is it possible to add field validation to an editable field? I have a custom post type where the title is a car VIN.
    I also use Gravity Forms and am writing up a function using its hooks to prepare (and haven't decided quite how yet) some sort of PHP explode on the entered info on submit that will check it to be a certain length and have the same first four characters.
    I was wondering if something similar could be done or could be hooked in to the FEE via jQ since the plugin seems jQ heavy.

    Second, is it possible to clear a custom field that has the image case applied to it?
    I am using custom fields in the same custom post type that are to be images. The field contains the URL which I then call on a gallery page so it works.

    I added the custom field from the page I use for editing as:
    <?php editable_post_meta( get_the_ID(), 'carimage1', 'image' ); ?>

    When you edit the post, you can double click on the custom field value. It brings up the Media Uploader, you add any image, and then click the Change Image button and it updates the image value.
    (A related issue is that on update, the field value doesn't get updated) when the media library portion is done, though the image URL does indeed get updated.

    The question here is would there be a method or suggestion that would allow me to maybe render a delete button that would edit that field and clear it (as text-input perhaps) for updating.
    Also, when an image is updated via the field code mentioned above, it there a way to get the field to update without refreshing the whole page? The field definitely updates so everything does work.

    Let me know if you need a visual example or if you need to see the code.

    http://wordpress.org/extend/plugins/front-end-editor/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic