• I’m new to WordPress and WP Data Access plug-in and am trying to create a simple registration form using a wpdadiehard shortcode similar to the one shown in the tutorial video. The table and form are working well, but I can’t figure out how to:
    – remove the “Add new row to table REGISTRATION” that appears above the form
    – change the title of the button “save changes to database” to “enter”
    – redirect the user to another page in the site.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi,

    Welcome to the forum! 🙂

    – remove the “Add new row to table REGISTRATION” that appears above the form

    The “Add New” button cannot be removed, unless you change the insert column to “Only”. But this will remove the list as well. Do you want visitors to be able to see the list?

    If you want to keep the list and still remove the button, you’ll need to add your own code. You could use action hook wpda_before_simple_form to add your own javascript code to remove the “Add New” button. Here is the documentation:
    https://wpdataaccess.com/2020/04/11/action-hook-wpda-before-simple-form-to-add-custom-elements-to-beginning-of-data-entry-forms/
    If you are new to WordPress this might be a challenge…

    – change the title of the button “save changes to database” to “enter”

    You will either need to update the language file or add your own code (same as mentioned above).

    – redirect the user to another page in the site

    You can either add a button to your webpage, or add one using one of the hooks. More information about hooks and filters can be found here:
    https://wpdataaccess.com/code/

    Does this help? What are your requirements?

    Best regards,
    Peter

    Thread Starter well14

    (@kl14)

    Thank you for your prompt reply!

    I’ll spend some time figuring out the button hooks later, in the meantime I’ll just add another button.

    The “Add new row to table REGISTRATION” I was referring to isn’t a button, it’s a title above the main form box that I can’t seem to get rid of after imbedding the wpdadiehard short code into a webpage. I followed the same procedures you did in your video tutorial, and in your case a title didn’t show up.

    THanks

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    That is the default title. Please add your own title in the project page (scroll down) to overwrite it.

    Hope this helps,
    Peter

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

The topic ‘Shortcode display – title and button’ is closed to new replies.