Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use it for questions about the Form API. Don't use it for entity or entity field forms.
1
vote
2
answers
2k
views
#limit_validation_errors submit problem
I have a problem using #limit_validation_errors for a submit button on which I dont want all the validations to run. Here's my custom submit button :
$form['actions']['draft'] = array(
'#type' = …
1
vote
1
answer
2k
views
Wrap form field
I want to render a form element like this:
<div class="form-group clearfix">
<label>Title: <span class="red">*</span></label>
<div class="pull-left">
<input type="text" placeholder="Title">
…
1
vote
1
answer
627
views
Disable past dates in date_combo
Is there a way to disable the past dates in the date pop-up while using the date combo form api? Specifically, I have a date type field in a content type, on which I want to do this.
Help appreciated …
0
votes
0
answers
95
views
Callbacks as objects
I find that in Drupal 8 we can specify the submit/validate callbacks as objects. So I was wondering, if we are form-altering a certain form, how do we specify the submit callback as an object?
Like i …
0
votes
1
answer
191
views
Show result summary in theme table
Can we show the result summary like "Displaying X to Y of Z records" while using the "table" or "tableselect" themes? I mean just the thing we do in views header/footer using the "Global: Result summa …
1
vote
1
answer
1k
views
Different node form id for add/edit
I recently found that unlike Drupal 7, D8 has a different form id for addition and edit of nodes. Is there a specific reason for that? Because this makes the hook_form_FORM_ID_alter() less granular as …
1
vote
1
answer
872
views
Alter paragraph fields in closed mode
I was wondering if there is a way to alter paragraph fields when the paragraph is set to "closed" in the Edit mode setting of form display. Because in that case the hook_field_widget_WIDGET_TYPE_form_ …