Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 221 total)
  • Author
    Posts
  • in reply to: Hide Custom Field Type #47244
    Nicholas CoxNicholas Cox
    Participant

    ok thanks anyway

    Nicholas CoxNicholas Cox
    Participant

    Yes i expand the group before saving the post.

    in reply to: stop error logs when column does not exist #47242
    Nicholas CoxNicholas Cox
    Participant

    Hi

    Ok I came across this post https://support.metabox.io/topic/save_field/ and noticed using 'save_field' => false,

    this worked for me so thanks anyway.

    in reply to: Field pull custom table row data #47241
    Nicholas CoxNicholas Cox
    Participant

    Ah ok thanks for clarifying
    I will add the extra form field group to the shortcode.

    Just out of curiosity, if i have more than one custom table (each table being a field group) and they are all linked to the same post type will this cause any issues?

    I also have some field groups which are custom models too, so just checking if the shortcode is the way to go for me.

    in reply to: rwmb_frontend_validate & Field data #47240
    Nicholas CoxNicholas Cox
    Participant

    ah ok, i was just checking incase there was an other option, thanks

    in reply to: Field pull custom table row data #47230
    Nicholas CoxNicholas Cox
    Participant

    So it would be cool to e.g. use a group field (with the name being the related database table name) and each child field being the column values (using any field type). This would allow flexibility to link multiple custom tables to one field group where we can automatically pull the data in on editing and posting/updating the row to the related database table.

    My issue is that to achieve updating multiple related tables from one front end form is fine after submitting the form but when editing a form there is no easy way to prefill the form with the related table data (if exists).

    in reply to: Custom Fields and jQuery Validation #47229
    Nicholas CoxNicholas Cox
    Participant

    Hi

    I tried this and it used to work about 6 months ago, but now i have checked every setting and the Jquery front end does not validate with custom fields? I created a new custom field using your code above 'hotline' but it adds the required asterisks to the label etc when using the validation rules but there is no error message displayed when submitting the form?

    I have also tried this with the the following setup and it does not work either (as previously mentioned)

    class RWMB_dc_price_Field extends RWMB_Field { 
    		
    	public static function html( $meta, $field ) {
    
    		return sprintf(
    			$html = '
    				<div class="rwmb-input-group"><span class="rwmb-input-group-text">' . $prepend . '</span><input class="" id="' . $uniqueID . '" required="' . $required . '" type="number" title="' . $field['field_name'] . '" value="' . $meta . '" placeholder="' . $placeholder . '" name="%s" min="' . $priceMin . '" max="' . $priceMax .'" step="' . $priceStep . '" ><span class="rwmb-input-group-text">' . $append . '</span></div>',
    			$field['field_name'], 
    			//$field['id'], 
    			$meta
    		);
    	}
    }

    thanks

    in reply to: Field pull custom table row data #47228
    Nicholas CoxNicholas Cox
    Participant

    Hi

    No i am after saving different field data to separate tables in one form. So when each field passes validation it saves into a relational database table based on a set of validation rules.

    in reply to: load post_status into select field #47206
    Nicholas CoxNicholas Cox
    Participant

    ok well i thought you supported the post_status field like you do for the post title etc.

    in reply to: rwmb_frontend_validate & Field data #47205
    Nicholas CoxNicholas Cox
    Participant

    Hi

    Sorry i must have not been clear enough, when i mentioned the 'field' data, this is the field settings like you can get when sanitizing a field e.g. of $field below. But can this be done in the front end validation? I need to check a form fields attribute value during the front end validation.

    function my_sanitize_money_field( $value, $field, $old_value, $object_id )

    Nicholas CoxNicholas Cox
    Participant

    using the url parameter to populate the front end form e.g. http://localhost/testsite/edit-product/?rwmb_frontend_field_post_id=479

    in reply to: load post_status into select field #47075
    Nicholas CoxNicholas Cox
    Participant

    Hi, ok but the 'rwmb_{$field_id}_after_save_field' is ok for saving the field for the post_status, but i am looking to auto populate the form when editing a post. Does metabox automatically populate a field with the id of post_status with the post status value e.g. draft?

    I ask as if you are editing a draft post using the front end form then i need it to recognise the current post_status and auto select this from the select field.

    thanks

    in reply to: Hide Custom Field Type #47037
    Nicholas CoxNicholas Cox
    Participant

    Hi

    Im using class RWMB_dc_rrule_until_Field extends RWMB_Field

    I think im just trying the best way to hide the fields label name too, but not sure how to call this using a custom attribute? Like when you use a hidden field (https://docs.metabox.io/fields/hidden/) it does not display the label, how can i achieve this with a custom field attribute to show/hide this?

    hope this makes sense.

    in reply to: Save State Not Remembered After Browser Refresh #47018
    Nicholas CoxNicholas Cox
    Participant

    Hi Peter.

    It sort of makes sense, i assumed from this that it saved the open and close state. But I guess it would be a nice feature for certain forms. thanks anyway

    Nick

    in reply to: Save State Not Remembered After Browser Refresh #46973
    Nicholas CoxNicholas Cox
    Participant

    i have updated to the latest versions of metabox and extensions also and have the same issue.

Viewing 15 posts - 31 through 45 (of 221 total)