- πΊπ¦Ukraine ershov.andrey
Re-upload full patch for 8.x-1.0-beta5 version
- Status changed to RTBC
over 1 year ago 7:42pm 20 June 2023 - πΊπΈUnited States cedewey Denver, CO
Hi, I've tested this patch and it worked as expected. For my purposes, this is an optional field. I would like it therefor, to either allow 0 values, but if there is any value at all that it be the minimum I set, which in my case is 3.
If that's possible, I would love to know how. Otherwise, I think my needs will be better met with custom code.
All that to say, since the patch works as expected I'm marking at as RTBC.
- π¨π³China g089h515r806
#9 is right, it is unusable with an unlimited value field.
But it is usefull for other case.
I made some small changes to the patch. - π¨π³China g089h515r806
Here is some code that solve "add more" button issue:
function mycustom_form_alter(&$form, FormStateInterface &$form_state, $form_id) { if ($form_id == 'node_page_edit_form') { $form['field_mail']['widget']['add_more']['#limit_validation_errors'] = []; } }
-
g089h515r806 β
committed 6e065902 on 8.x-1.x authored by
ershov.andrey β
Issue #2877616 by ershov.andrey, piggito, rv0, maticb, Giuseppe87,...
-
g089h515r806 β
committed 6e065902 on 8.x-1.x authored by
ershov.andrey β
- Status changed to Fixed
over 1 year ago 7:31am 21 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.