Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 221 total)
  • Author
    Posts
  • Nicholas CoxNicholas Cox
    Participant

    also just realised after posting that if the forms are loaded when the user is not signed in then there are no delete icons next to the clone fields.

    in reply to: Visitor to be able to edit a front end form #44924
    Nicholas CoxNicholas Cox
    Participant

    I am using a model, i can see there is a 'capability' parameter but no option to se to none?

    mb_register_model( $this->dc_basket_table_name, [
    	'table'  => $tablename, // Table name.
    	'show_in_menu' => false,
    	'capability' => ''
    ] );
    in reply to: rwmb-field-meta filter for cloneable groups #44916
    Nicholas CoxNicholas Cox
    Participant

    hi yes it works just fine thanks

    in reply to: rwmb-field-meta filter for cloneable groups #44910
    Nicholas CoxNicholas Cox
    Participant

    ignore my last message, i was missing the return value in the function

    in reply to: rwmb-field-meta filter for cloneable groups #44909
    Nicholas CoxNicholas Cox
    Participant

    Hi

    thanks, i tested this and i recieve the following error.

    Fatal error: Uncaught TypeError: RWMB_Clone::html(): Argument #1 ($meta) must be of type array, null given. meta-box\meta-box\inc\clone.php on line 6

    TypeError: RWMB_Clone::html(): Argument #1 ($meta) must be of type array, null given, called in meta-box\meta-box\inc\clone.php on line 6

    my code:

    add_filter( 'rwmb_basket_items_field_meta', [ $this, 'dctest' ], 10, 3);
    
    public function dctest( $value, $field, $saved ) {	
         // error_log(print_r($value, true));
    }
    in reply to: Refresh form ajax #44881
    Nicholas CoxNicholas Cox
    Participant

    Ok is it possible to update/populate a form field value when validating a form? so i could essentially fail the front end form from validating when certain conditions are met via ajax and then populate a field value?

    thanks

    Nick

    in reply to: Hidden Fields and Columns CSS conflict #44880
    Nicholas CoxNicholas Cox
    Participant

    hi

    no im not using custom code, its the css provided by your plugins (inline css in the front end form and columns.css file for metabox). You can see from the screenshot that one is taking priority over the other in the developer toolbar. It's a CSS order priority issue, you need to re-order the css calls or provide a parent id/class before the css call instead of using the !important property (as its not good practice to use it).

    from this

    .rwmb-hidden-wrapper {
      display: none;
    }

    to this

    .rwmb-formx .rwmb-hidden-wrapper {
      display: none;
    }
    in reply to: rwmb_begin_html and group field #44839
    Nicholas CoxNicholas Cox
    Participant

    ok great, if the fields are repeated then will the rwmb_begin_html duplicate the html?

    I am basically trying to prefix some html before every repeatable group field, is there a way to also know which numbered clone it is targeting? e.g. clone group 1

    Nicholas CoxNicholas Cox
    Participant

    Hi Kevin,

    How did you do go about your latest answer? do you mind sharing your code please as im looking for this solution too.

    thanks

    Nick

    Nicholas CoxNicholas Cox
    Participant

    Hi

    Ok so I was just checking as those shared posts links are a few years old and wondered if this was an option now. What are the issues surrounding using more than one form on a page? i understand the url parameter part will be.

    i noticed one of the other threads mentioned that ajax forms will not work with multiple forms, do you not target a unique id when submitting metabox front end forms?

    thanks

    Nick

    in reply to: url parameter overrides shortcode post_id #44822
    Nicholas CoxNicholas Cox
    Participant

    ok i will try this thanks

    in reply to: rwmb_frontend_validate and update $_POST value #44807
    Nicholas CoxNicholas Cox
    Participant

    Hi Peter,

    that worked great, could not find that in the docs.

    Nicholas CoxNicholas Cox
    Participant

    Hi Peter,

    thanks for asking them

    in reply to: cloneable groups - json vs serialized string #44791
    Nicholas CoxNicholas Cox
    Participant

    Hi Peter

    ok thanks for the explanation, i checked out the link https://docs.metabox.io/cloning-fields/#data-of-cloneable-fields and i can see that the 'Clone as multiple' option is ideal for posts/pages but does not work for custom tables and models.

    So if i was to query serialized values using wpdb and custgom tables, then how would i query values within this?

    in reply to: plus and minus number field #44788
    Nicholas CoxNicholas Cox
    Participant

    ok i will do that thanks

Viewing 15 posts - 91 through 105 (of 221 total)