We have a drupal form (form API using hook_form_alter) with a changeable number of text fields.
We would like to be able to update a select dropdown, with the options corresponding to the number of filled in text fields (in our example we have 4 out of five textfields which are not empty, the select should show all / 1 / 2 / 3 ).
Ideally this would work in a similar way to the native drupal autocomplete, so that the process is triggered once the user has finished typing. If however the user decides to continue typing the process should not interfere with the user input.
The select list should only be visible once two or more inputs have been filled. If the number of inputs which are not empty is changed (by deletion or addition of text) the select box can return to it’s default value of ‘all’.
We have this working to an extent, but there is one issue with it. The calculation is set to happen 0.8 seconds after last keystroke from the user. Unfortunately this means if someone is a slow typist, after 0.8 seconds passes, their cursor is removed from the text field they are in, which is very annoying for the user.
What we need is an expert in this field to be able to give us the solution so that the calculation can occur with the cursor still remaining in the relevant text box.
Here is the detail of the question asked on Stack Exchange
[url removed, login to view]
20 freelancers are bidding on average £180 for this job
Hi, This is Gopal for STALLIONi, I am comfortable for the terms you described. Shall we discuss about the task? Please text me here when you ready to discuss about the task. Thanks Gopal
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks
This is my job. I can do it. I'm ready to work now. ======================================================================================================================================================
hello I readed the description carefuly and I'm ready to make you a part as a free demonstration on your own drupal site. you'll hire me only if you'll like it. your satisfaction is my first objective. trust me.
Hi, I have 5 years of experience with drupal, PHP, HTML and CSS. I have developed many custom modules and themes in drupal5.x, drupal6.x & drupal7.x. Thanks Srini