Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pixelaar

    (@pixelaar)

    Actually I am working with a custom post type where user will submit their problem from a frontend form and my staff will reply its like small support system. So when user submit their problem its very important to submit images of the problem so I think I need to add option so user can attch file and then can submit. Check my attached image. I created a form with subject and message field with a submit button and when user submit the form I am creating custom post inside. So I already applied the submission handelar and tested all works very fine. Now I want to add image attachment option and hanging with that as I got one save and another submit button created by me.

    I am new with CMB2 so asking too many Question , I am very sorry for that , I know you are really working hard to make it really nice and I like your system very much but I need time to make myself used to with it.

    Thanks in advance for your valuable time.

    Frontend Submission Form

    Check image from this link if attachment not working https://prnt.sc/e8t8ye

    • This reply was modified 7 years, 9 months ago by pixelaar.
    • This reply was modified 7 years, 9 months ago by pixelaar.
    Thread Starter pixelaar

    (@pixelaar)

    I already read the article. I just want to remove your save button as I have my own and when submit is that save the data automatically like to save Category I am doing $category = array( absint( sanitize_text_field( $_POST[ 'Pxlr_ticket_category' ] ) ) ); at my form submission time. I already have my own form with submit button so how I can remove save button ?

    When my form submit the uploaded media file will be save automatically. Any advice ?

    Also after adding media button my form submission not creating post. After submitting form its reloading same page with no error. But before adding media field all was ok and working perfect.

    Thanks

    Thanks in advance.

    • This reply was modified 7 years, 9 months ago by pixelaar.
    Thread Starter pixelaar

    (@pixelaar)

    Its now loading in my frontend by applying cmb2_init . I was trying by cmb2_admin_init instead of cmb2_init so it was generating error. Now my meta box is showing in frontend submission. But there I am handling my own form submission and all were working fine. But after your field appear its not creating new post and there after meta box its showing another save button. How to remove that save button and store and save file and create new post with my own submission button as before ? Is there it will save data automatically or I have to add something in my form handler function ?

    Thanks in advance for your valuable time.

    Thread Starter pixelaar

    (@pixelaar)

    I also tried with
    <?php echo jt_cmb2_do_frontend_form_shortcode( array( 'id' => 'pxlr-ticket-attachment' ) ); ?>

    But no luck. Still having the error.

    Also I tried to change the ID name by inspecting from backend field but no luck. Any advice ?

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