Skip to main content
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
Results tagged with
Search options not deleted user 57105

Use it for questions about the Form API. Don't use it for entity or entity field forms.

1 vote
0 answers
26 views

is it possible to manipulate manage_file field on validation

Using the form api, is it possible to manipulate the managed_file field inside the validation function. For example if the fid of the field is 15, I want to change it to 10. It seems like it isn't b …
J.Floyd's user avatar
  • 139
1 vote
0 answers
639 views

Trying to get form elements to appear in draggable table

So I saw this table example on Drupal.org with two form elements per row. I wanted to do something similar except have the rows draggable. Below is example of the Drupal.org code. $form['contact'] = …
J.Floyd's user avatar
  • 139
0 votes
Accepted

Save image to node via form API

It's been a while since I've done this but this link should be a good start. File Load Assuming $form_state['storage']['image'] is the image's fid, what you may want to do is. $image = $form_state[ …
J.Floyd's user avatar
  • 139
0 votes
1 answer
150 views

FAPI text_format field value not being passed to submit handler

I created a form that I wanted to be reusable. So I created to form below to imported into a add form and a edit form. Please be aware I do have the validateForm, and submitForm function in my code. …
J.Floyd's user avatar
  • 139
1 vote
0 answers
38 views

( FAPI) Trouble Manipulating Managed Fields with Nested Field sets that can be added and rem...

So my problem is this. I am trying to create a configuration form that allows you to control the front end of a page display. On the front page there are these regions, and each regions holds text and …
J.Floyd's user avatar
  • 139
0 votes
1 answer
95 views

Creating a field that has node values using FAPI

I would like to use the Form API to create a form that uses a textfield that references all the current nodes as an autocomplete. Is there a way to added field using the FAPI that allows a user to typ …
J.Floyd's user avatar
  • 139