Start Validating form data using hidden fields

Validating form data using hidden fields

These fields are displayed as text rather than as input elements, and thus are not posted back to the server.

Ok, I've fixed my runtime error by setting my field_ticker_timestamp field as follows: $form['field_ticker_timestamp']['#access'] = FALSE; Hope this helps someone else.

By the way, I see a new release 2.9 but from the release note, it does not appear this issue is fixed.

So if i want to grant access for one role and hide from others with default value, i cant use Form API.

Unfortunately, it's really a PHP configuration issue.

The first parameter will contain the name of the field, the second parameter will contain an associative array of options, and the third parameter will contain the value you wish to be selected.

You can also pass an array of multiple items through the third parameter, and Code Igniter will create a multiple select for you.

The main benefit of using this tag rather than hard coding your own HTML is that it permits your site to be more portable in the event your URLs ever change.