For a Text Area, is it possible to have text hinting so as a user starts typing a possible entry is shown? I mean something similar to the taxonomy free tagging method.

Im making a site where the Text Area is an address. Users need to be able to enter any address, but quite often they will be entering the same address as the last time they filled out the webform.

Thanks

Comments

quicksketch’s picture

Title: Text Hinting? » Autocomplete text field

What you're describing is typically called an autocomplete-textfield. No, this isn't possible with Webform. Most users that fill out Webforms are usually anonymous, meaning it couldn't autocomplete useful information most of the time. Fields between different forms are also not possible to map to each other, so Webform has no idea which fields are "Address" and which ones are "First name" for example, so it'd have no way to autocomplete a value from one form on a different one.

jdln’s picture

Status: Active » Closed (won't fix)

Thanks anyway. I guess ill see if their is a javascript work around or something.

cyprien2’s picture

It is not possible with form_alter by adding an #autocomplete_path to a webform textfield ?
I've tried something like that :

function bgcercle_form_webform_client_form_8628_alter(&$form, &$form_state) {
  $form['submitted']['restaurant_concerne']['nom_du_restaurant']['#autocomplete_path'] = 'etablissement_name/autocomplete';
}

And it still does not work.

function bgcercle_form_webform_client_form_8628_alter(&$form, &$form_state) {
  //kpr($form['submitted']['restaurant_concerne']['nom_du_restaurant']);
  $form['submitted']['restaurant_concerne']['nom_du_restaurant']['#default_value'] = 'test';
}

is working...

cyprien2’s picture

Status: Closed (won't fix) » Needs work
cyprien2’s picture

Status: Needs work » Closed (fixed)

Sorry, it works. It was a css problem (hide trobber).

jdln’s picture

Status: Closed (fixed) » Active

HI cyprien2,
How do I implement your code?

Thanks

quicksketch’s picture

Status: Active » Closed (fixed)

Closing as support with custom coding is not provided in the Webform issue queue. Perhaps you'd have better luck trying to contact cyprien2 directly.

1kenthomas’s picture

As I'm here: you can google for solutions in both D6 and D7; I also have a reply on StackExchange with links. If you find it and it's helpful, please put the links here (I'm rushing ATM).

>support with custom coding is not provided in the Webform issue queue.

We really need a functionality that allows issues to remain for general community support, but that clearly marks them outside the (self-defined) responsibility of the maintainers. I'll ping the Support Team group ;)