Custom Fields
Re-Envisioned
Support MB Frontend Submission Something is not right with the shortcode on page ID:

  • Creator
    Topic
  • #30974
    jmcbade
    Participant

    I'm trying to use the "Dashboard" for post management of a CPT. Permalinks are set to "Postname".

    I have a page for the submit form with the ID: "vehicles-management" and on a new page (if I understand the documentation correctly I have a shortcode: [mb_frontend_dashboard edit_page="vehicles-management"]

    I get the error: "Something is not right with the shortcode on page ID:"

    What am I missing?

Viewing 10 replies - 1 through 10 (of 21 total)
  • Author
    Replies
  • #30975
    jmcbade
    Participant

    Ok, I found the post_id I needed and I get the dashboard. It's showing "ALL" post and I want the page to only edit a CPT - not every post submitted by the current user.

    Can this be done?

    #30977
    jmcbade
    Participant

    ... because what I really want to do is create a page where my CPT "vehicles" can be managed by anyone with the correct permissions.

    If I use this as it stands, only vehicles created by the current user can be managed.

    #30979
    jmcbade
    Participant

    I am trying to add the attributes found at Link: and some seem to work and some don't.

    My current shortcode looks like: [mb_frontend_form id="vehicles" post_fields="title, thumbnail" post_type="vehicles" allow_delete="true" edit="true" ajax="true" delete_confirmation="Are you SURE? All post and attachments will be deleted."]

    For example, I don't see a "Delete button".

    #30981
    Long Nguyen
    Moderator

    Hi,

    If the attribute ajax of the shortcode is assigned to true, the delete button will display when you edit the post from the Frontend Dashboard.

    #30987
    jmcbade
    Participant

    Do you see in my example I have set ajax="true" in my shortcode above? I am not seeing the delete button. Should it be ajax=true (without the quotes)?

    I would request that your documentation have a lot more examples including some working shortcodes with the parameters being used and a screen shot of the output.

    #30988
    jmcbade
    Participant

    I changed the shortcode to this:

    [mb_frontend_form id="vehicles" post_fields="title, thumbnail" post_type="vehicles" allow_delete=true edit=true ajax=true delete_confirmation="Are you SURE? All post and attachments will be deleted."]

    Still nothing but a "Submit" button. Very frustrating.

    Please create some working examples of these various params listed at:

    https://docs.metabox.io/extensions/mb-frontend-submission/

    with the shordcode and output examples. Put them in the documentation also please.

    #30989
    jmcbade
    Participant

    When I view the page with the form, no delete button. I also have a page with the "Dashboard" that refers to the SAME page form and when I use the edit pencil from there, the record shows with the data (most of it - see below) and the "Delete" button shows there. Huh!?

    Also, some of the fields are not working like the "Switch" fields don't keep there settings. Why? When I go to the back end they are not being saved as well. They are defaulting to a greyed out "off" position - even when I set to required and default to "On".

    #30993
    Long Nguyen
    Moderator

    Hi,

    Please take a look at my screen record https://share.getcloudapp.com/wbub4Yde

    As my previous reply:

    If the attribute ajax of the shortcode is assigned to true, the delete button will display when you edit the post from the Frontend Dashboard.

    You can remove the attribute ajax or set it to false to show the Delete button after submitting a post.

    Regarding the field switch does not save its value. Can you please share the code that creates the custom fields? I do not see that issue on my end.

    #31022
    jmcbade
    Participant

    Here is the CPT code if you need that: Link:

    And here is the Custom Fields code: Link:

    #31023
    jmcbade
    Participant

    If I want to create a CPT, form and dashboard that a certain level user all of them can use?

Viewing 10 replies - 1 through 10 (of 21 total)
  • You must be logged in to reply to this topic.