Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • in reply to: Send email if checkbox is ticked #33433
    hello@twosixmedia.co.uk[email protected]
    Participant

    sorry - I have worked out the html formatting - thanks again - really good/helpful support from you!!

    in reply to: Send email if checkbox is ticked #33432
    hello@twosixmedia.co.uk[email protected]
    Participant

    brilliant - thank you so much for all your help - works really well - one more question - is it possible to add html formatting to the email - like bold or headings etc

    regards

    Paul

    in reply to: Send email if checkbox is ticked #33416
    hello@twosixmedia.co.uk[email protected]
    Participant

    the last code you sent doesn't check for the checkbox field for submission as in the code below

    I want it so that the email is sent when the user ticks the checkbox and the post title is included in the email so the admin know which post is ready for review

    sorry for all the questions on this but not a coder

    <?php

    add_action( 'rwmb_frontend_after_process', function( $config, $post_id ) {
    $value = empty( $_POST['submit_form_for_review'] ) ? null : $_POST['submit_form_for_review'];
    if ( $value == 1 ) {
    wp_mail( '[email protected]', 'New submission', 'A Green Care Quality Mark Form has been just submitted for review.' );
    wp_safe_redirect( 'submitted' );
    die;
    }
    }, 10, 2 );

    ?>

    in reply to: Send email if checkbox is ticked #33401
    hello@twosixmedia.co.uk[email protected]
    Participant

    I;m sorry - I'm not sure how to add ther field to the email in the code you sent me - the post title is required - could we add that to the email that is sent?

    I added the code below to change it's name on the front end - not sure if that affects it

    thank you for your help so far

    Paul

    add_filter( 'rwmb_frontend_post_title', function( $field ) {
    if ( is_page( "Green Care Form" ) ) {
    $field['required'] = true;
    $field['name'] = 'Name of green care site';
    return $field;
    }
    } );

    in reply to: Send email if checkbox is ticked #33374
    hello@twosixmedia.co.uk[email protected]
    Participant

    can the email give any info the form submitted - who it was from or a link to it etc - at the moment the admin can't tell who submitted the form

    in reply to: Send email if checkbox is ticked #33373
    hello@twosixmedia.co.uk[email protected]
    Participant

    thank you so much that worked

    in reply to: Send email if checkbox is ticked #33359
    hello@twosixmedia.co.uk[email protected]
    Participant

    no it doesn't redirect to the page - goes to the user dashboard. - other emails seem to be sending fine

    in reply to: Send email if checkbox is ticked #33346
    hello@twosixmedia.co.uk[email protected]
    Participant

    I have tried to set this up - but the email doesn't seem to be sending - what anm I doiung wrong? using a code snippets type of plugin for this as I'm using oxygen builder and no theme is used

    <?php
    
    add_action( 'rwmb_frontend_after_process', function( $config, $post_id ) {
        $value = empty( $_POST['submit_form_for_review'] ) ? null : $_POST['submit_form_for_review'];
        if ( 'yes' === $value ) {
            wp_mail( '[email protected]', 'New submission', 'A Green Care
    Quality Mark Form has been just submitted for review.' );
            wp_safe_redirect( 'review' );
            die;
        }
    }, 10, 2 );
    
    ?>
    in reply to: Hide Title column from front end submission #32725
    hello@twosixmedia.co.uk[email protected]
    Participant

    thank you for your help again - I don't want it to redirect if a value is matched - I just want it to go to a different page once it has been submitted - so after post go to /newpage/

    thanks again

    in reply to: Hide Title column from front end submission #32708
    hello@twosixmedia.co.uk[email protected]
    Participant

    thank you for all your patience with me.

    can you just let me know where I get the info for the following.

    Regarding the redirect code above, you need to replace my-id and field_id with your meta box ID, field ID to make it works.

    I have this shortcode for the form - where do I find the 2 IDs
    [mb_frontend_form id='garden-form' post_fields='title,content']

    sorry for my lack of knowledge on this topic - this is all new to me

    kind regards

    Paul

    in reply to: Hide Title column from front end submission #32696
    hello@twosixmedia.co.uk[email protected]
    Participant

    Thank you - I have sorted the issues above - I'm having trouble with the redirect - I have seen the code below - but not sure if I need to change anything to get it to work and also where I implement it - I have tried adding the code using a code snippets plugin to run everywhere - but it didn't seem to work.

    Also - is it possible to alter the text Howdie on the title - would like to say "Welcome" instead

    add_filter( 'rwmb_frontend_redirect', function( $redirect, $config ) {
        // Make sure you work on the correct form.
        if ( 'my-id' !== $config['id'] ) {
            return $redirect;
        }
    
    // Get submitted data via $_POST.
    $value = empty( $_POST['field_id'] ) ? null : $_POST['field_id'];
    if ( 'yes' === $value ) {
        $redirect = 'https://yourdomain.com/custom-page/';
    }
    return $redirect;
    
    }, 10, 2 );
    in reply to: Hide Title column from front end submission #32684
    hello@twosixmedia.co.uk[email protected]
    Participant

    Also - how can I limit the user to jut one post - I only want them to be able to add i post which they cab=n edit any time - as it will be a long form that they fill out and keep up to date.

    I'm not very good with code so please be kind with your answers

    thank you

    in reply to: Front End Submission - doesn't keep data #32653
    hello@twosixmedia.co.uk[email protected]
    Participant

    I have solved it - it was not listing the custom post type - search your docs and found out how to do that - thank you for your help anyway

    regards

    paul

    in reply to: Front End Submission - doesn't keep data #32652
    hello@twosixmedia.co.uk[email protected]
    Participant

    I have just realised that this is using a custom post type called Gardens and it seems to be only showing posts - can I get the front end dashboard to show these - or does it only show posts

    in reply to: Front End Submission - doesn't keep data #32642
    hello@twosixmedia.co.uk[email protected]
    Participant

    I have increased it as you have asked - but it's nit the issue - as the fields save - they are in the post on the back end - just don't seem to be there on the front end in the user dashboard - I click the pencil to edit and it looks like a new form - I want the user to be able to edit the post

    I can give you back end access if it will help

    on the frontend user dashboard - on the post list it says - Your list posts ! Once published, you can no longer edit a post.

    can I change this?

    thanks

Viewing 15 posts - 16 through 30 (of 31 total)