Forum Replies Created
-
AuthorPosts
-
March 20, 2024 at 8:47 PM in reply to: WordPress show_admin_bar disabled and remove icons missing #44934
Nicholas Cox
Participantalso 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.
Nicholas Cox
ParticipantI 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' => '' ] );Nicholas Cox
Participanthi yes it works just fine thanks
Nicholas Cox
Participantignore my last message, i was missing the return value in the function
Nicholas Cox
ParticipantHi
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 6TypeError: RWMB_Clone::html(): Argument #1 ($meta) must be of type array, null given, called in meta-box\meta-box\inc\clone.php on line 6my code:
add_filter( 'rwmb_basket_items_field_meta', [ $this, 'dctest' ], 10, 3); public function dctest( $value, $field, $saved ) { // error_log(print_r($value, true)); }Nicholas Cox
ParticipantOk 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
Nicholas Cox
Participanthi
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; }Nicholas Cox
Participantok great, if the fields are repeated then will the
rwmb_begin_htmlduplicate 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
March 13, 2024 at 6:17 PM in reply to: ✅[rwmb_begin_html] is there any way to get the current config['id'] ? #44829Nicholas Cox
ParticipantHi 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
March 12, 2024 at 10:31 PM in reply to: multiple front end forms on one page and url parameter queries #44823Nicholas Cox
ParticipantHi
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
Nicholas Cox
Participantok i will try this thanks
Nicholas Cox
ParticipantHi Peter,
that worked great, could not find that in the docs.
March 10, 2024 at 10:52 PM in reply to: ✅Password Reveal Button - touch/click button issue with CSS #44792Nicholas Cox
ParticipantHi Peter,
thanks for asking them
Nicholas Cox
ParticipantHi 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?
Nicholas Cox
Participantok i will do that thanks
-
AuthorPosts