• Resolved plj63

    (@plj63)


    Hello

    It is possible to go from a form (like search) to a page in edit mode. Here’s the scenario.

    At the start of the year there are renewals in membership or new members joining. A user is presented with a form and enters Firstname and Second name.

    If the user is already in the database a form is presented with the existing data. The user then submits the form for renewal and some fields , such as the date, are updated.

    If the user is not in the database the form is presented with just the First and Second names. The user fills out the rest of the form. Upon submit the new user is inserted into the database.

    What are the possibilities for this?

    Thanks for your reply

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Kim L

    (@kimmyx)

    Hi @plj63,

    Thanks for the post.

    You can create a form to search a table, and then pass the search using URL parameters to a page where a data form (data project) is displayed. This data form can be set to allow insert or modification of data if the search returns a result.

    Please see the following links for reference:

    1. URL Parameters: URL parameters | WP Data Access
    2. Search Form: Search form | WP Data Access
    3. Demo to create a new project: WPDA – Create New Project

    Hope this helps. Let us know if you have more questions. ??

    Thread Starter plj63

    (@plj63)

    Thanks that works. I have 2 futher questions.

    If a person is found the search form displays a table with edit option. Is it possible to go straight into the edit mode after the search so that the person can update the information?

    If a person is not found an empty table is shown. Again is it possible to go straight into edit mode. All fields are empty except for the first and second names. The person fills out the form an anew person is inserted into the DB

    Thanks for your reply

    Plugin Contributor Kim L

    (@kimmyx)

    Hi @plj63,

    Is it possible to go straight into the edit mode after the search so that the person can update the information?

    Yes! The way to do this would be to direct the search results to a page containing the page’s wpdadiehard shortcode instead of the whole project.

    See here: https://share.zight.com/p9uBKllr

    To enable inline editing, you need to check it per column in your table in the Data Explorer. See here: Column Settings – Inline Editing

    If a person is not found an empty table is shown. Again is it possible to go straight into edit mode.?

    This isn’t possible, but with the wpdadiehard shortcode, an Add New button on the top of the empty table can be used to redirect to a new form.

    Hope that helps. ?? Let us know if you have more questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search form to page in edit mode’ is closed to new replies.