Home Forums Plugin Support WP User Frontend Pro Different Field When Editing

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  saku4388 5 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7729

    saku4388
    Participant
    Post count: 23

    Hi,

    Could anyone help me to achieving this.

    When a user submit a post all the fields are ok but i just need when a user edit the post again there will be few more fields.

    Like i m running a Classified Site with wordpress Posts system so when a user submit a deal it is OK

    But i want that when his item is sold he can edit the listing and select a field which is ITEM SOLD and something like this.

    I am confused how to do this because all the fields are same which are submitting a post.

    Thanks ‘n' Regards,
    Shabir Virk

    #7804

    Tareq Hasan
    Keymaster
    Post count: 2831

    You can't do this as there isn't any function like that. But one trick you could use: create two forms, one for post creation and another for editing. When submitting the post update the form ID with the edit form's one using action hook.

    Another trick is to use action hook field in the form. There are parameters in the callback function and you'll get the post ID in that function. So check the post ID parameter and if it exists (means it's the edit area), show additional contents on the form. Hope I am clear.

    #8010

    saku4388
    Participant
    Post count: 23

    Hi,

    Could you please help me to achieve this?

    I just needed 2 extra field when editing.

    1st Delete the Listing
    2nd Reason
    3rd Direct Sold Or From Our Site

    Thanks ‘n' Regards,
    Shabir Virk

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

The topic ‘Different Field When Editing’ is closed to new replies.