Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function disableIncentiveform_form_views_exposed_form_alter(&$form, DrupalCoreFormFormStateInterface $form_state, $form_id) {
- if ($form['#id'] == 'views-exposed-form-drive-clean-incentive-search-page-1'){
- $form['field_new_used']['#attributes']['disabled'] = 'disabled';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement