All Questions
75 questions
0
votes
2
answers
2k
views
Override Views Contextual Filter in View Exposed Form Validation
I'm using the Content:Nid contextual filter in my view (with exposed filters) and would like to dynamically set the value of this contextual filter from the exposed form validation callback. Is this ...
2
votes
0
answers
77
views
Embedded view results being lost when form_set_error is being called
I have a page (user profile.tpl.php) with a custom form and a view embedded in the tpl.php file.
The custom form is defined in a custom module, with validation and submit hooks, and the view is being ...
2
votes
2
answers
2k
views
How to create a webform submission table with values from the form itself?
I find the current webform submission table completely inadequate when forms are submitted by anonymous users - you can't tell one from another other than by its submission date which not helpful in ...
0
votes
1
answer
2k
views
Making text fields autocomplete in views exposed filters
I want to make a text field auto complete in a views exposed form. I tried using the following code but nothing happens(I don't see that blue icon in the text field):
<?php
function nk_menu() {
...
0
votes
1
answer
76
views
Normal View with multi language website
I have a normal view on multi language site and add a field Called website the field is displayed on en language but does not show in the another language
How i can fix this problem
0
votes
2
answers
717
views
multi page content drupal 7
So i want to create a website which presents information about topics over multiple pages, i.e. say the content was films, one page would be an overview of the film and there would be a button at the ...
1
vote
2
answers
354
views
How to display a newly created node (created using a form) in the view using ajax (without page reload)?
I have created a "Share update" form using form API. Below the form, I am displaying a view "feeds" of all the published nodes of content type "updates". On submit, the form saves the data entered in ...
1
vote
1
answer
194
views
Contact form - leaving the form and resuming it later
Is it possible to have a contact form in drupal, which you can save, and resume later?
2
votes
1
answer
2k
views
How to override exposed filters view
I have one form of exposed filters of view. I need to override few elements of that, like change options for select box dropdown and like that.
For that I have created view, and used hook_form_alter, ...
1
vote
1
answer
120
views
how to make a search form
I would like to make a search form for my site so that users can use a series of drop down menus and click to search and it will create a view with listings that fit the criteria of the search.
Its ...
2
votes
0
answers
232
views
form_set_error() doesn't work in exposed_validate()
I have made a custom module which implements a new field for Field API and a filter for Views. Everything works like a charm except value validation for exposed filters. I will describe a problem step ...
5
votes
4
answers
2k
views
I use jQuery to alter the exposed form select options. Got error: "An illegal choice has been detected." How to bypass validation?
I have a view that has three expose filters (Manufacturer, Type, Model), three options list (term reference to Printer vocabulary) .
Vocabulary: Printer (3 levels)
-- HP
---- xxx
---...
1
vote
3
answers
651
views
Prevent hook_form_alter to works only on frontend not in admin?
I have used a hook_form_alter to alter a form fields value randomly and its working fine, but the problem is that when i open this webform in admin panel its just change the value which i dont. Its ...
2
votes
3
answers
336
views
I've created a Webform. Whats next?
I am completely new to Drupal. And I would really appreciate if someone could help me out here.
I used the "WebForm" module, and created a form. The data went into the database perfectly fine, as it ...
1
vote
1
answer
3k
views
How to display, search, and edit form submissions from a table with WebForm?
I am very new to Drupal and I've been recently assigned a task to make a form for a single admin to register people and their info. It's basically a registration/contact form, except these people aren'...
0
votes
2
answers
883
views
Add Form frields to View
I'd like to generate a view of Employee names, but I'd like to embed it inside a form as well as add checkboxes next to each Employee name. I tried to use Rewrite the output of this field but my <...
0
votes
2
answers
789
views
Exposed filter of a view embedded in a panel overriding a node form triggers node submission. How to prevent this?
I have a panel overriding the node/add form of a custom content-type in one pane and a view listing some nodes including 2 exposed filters to reduce the results of that list in another pane.
Both, ...
0
votes
1
answer
380
views
Need block context in hook_form_alter
I'm trying to get my module to work: it replicates an exposed filter of a view into a block to display on other pages. Altering the form generally works, but it unfortunately works globally, ie. my ...
1
vote
1
answer
431
views
How to format 'node reference' field values from the Views module
How can I format the output of a 'node reference' field that is generated using a View?
Currently it's formatted as (See 2nd graphic): "FirstName - Lastname Pagetitle"
I'm trying to change that to:...
0
votes
3
answers
3k
views
Make a Views form collapsible
I have a search form in my header. Instead of using the core search, I used a custom block that takes the search string and passes it to the Advanced Search page, built in Views, where users can ...
0
votes
1
answer
10k
views
Notice: Trying to get property of non-object
I have created a module, and I am trying to use the following code:
function mymodule_form_alter(&$form, &$form_state, $form_id) {
if ($form_state['view']->name == 'album1') {
/...
2
votes
1
answer
5k
views
Create dependent dropdown in views exposed filter
I've created a view of users. It includes two exposed filters as drop downs to filter the list. One is for the city and the other for the squadron. The squadron drop down is related to the cities as ...
1
vote
1
answer
3k
views
Adding class to form element via hook_form_alter for views exposed filter is not working
I have a Views exposed filter, for which I am trying to add a class via hook_form_alter() with the following code:
$form['price']['#attributes'] = array('class' => array('price-hide'));
...
2
votes
1
answer
258
views
How can I implement a form into a DC view footer?
I am trying to make a shipping quote module for Drupal Commerce (DC) and I am trying to do it within the DC cart view footer by sending a form within a view.
I have done quite a bit of research and ...
1
vote
2
answers
399
views
Can I expose the signup form through views 2?
I am using Signup and Views in Drupal 6 (I can't install Drupal 7), and I created a view that lists all the nodes for which users can signup.
Now I want to enable users to signup for one of these ...