Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocomplete should allow non-list values #289

Open
GoogleCodeExporter opened this issue Jul 23, 2015 · 8 comments
Open

autocomplete should allow non-list values #289

GoogleCodeExporter opened this issue Jul 23, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

The auto complete widget tries to prevent entries not in the list by popping a 
toast that says "answer not recorded" and not recording the answer.  This 
doesn't follow the user's mental model well.

It should be changed to allow any entry, and if the user wants to specifically 
constrain answers they should use the constraint field.

This is in 1.1.7 RC1.

Original issue reported on code.google.com by [email protected] on 4 Aug 2011 at 8:56

@GoogleCodeExporter
Copy link
Contributor Author

jeff is working on this.

Original comment by yanokwa on 6 Aug 2011 at 4:24

@GoogleCodeExporter
Copy link
Contributor Author

We'll have to rework this somehow.  The problem is that the autocomplete is 
currently implemented as a select1, which works for filling out a form.  
However, when you load a saved form javarosa checks to see that the saved value 
matches a value in the select one, and when it doesn't match it silently throws 
it away, which seems like bad behavior.  We could implement it as a "string" 
instead of a select1, but then we have to figure out where to store the list 
and how to reference where the list is stored.

Original comment by [email protected] on 29 Sep 2011 at 10:44

@GoogleCodeExporter
Copy link
Contributor Author

Issue 307 has been merged into this issue.

Original comment by yanokwa on 21 Oct 2011 at 7:53

@GoogleCodeExporter
Copy link
Contributor Author

filed javarosa bug at 
https://bitbucket.org/javarosa/javarosa/issue/52/add-support-for-open-select-one
-in-prompts

Original comment by yanokwa on 21 Oct 2011 at 7:53

  • Added labels: JavaRosa
  • Removed labels: Collect

@GoogleCodeExporter
Copy link
Contributor Author

Assuming that the patch attached to issue 307 is applied Collect appears to 
implement the "closed" behaviour safely enough that it can be reintroduced.  
This patch does just that.

Original comment by [email protected] on 24 Nov 2011 at 6:50

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

we chatted about this and decided the old implementation also wasn't adequate.  
Popping up a toast and clearing the answer is likely to be missed and lead to 
lost data, and is inconsistent with the rest of Collect.  The "closed" behavior 
should act more like a constraint and prevent the user from moving on if a bad 
value is entered.  That functionality, I think, will have to be added in the 
javarosa core.  Until then we're going to continue to leave out autocomplete. 

Original comment by [email protected] on 29 Nov 2011 at 3:27

@GoogleCodeExporter
Copy link
Contributor Author

Original comment by yanokwa on 25 May 2012 at 8:11

@GoogleCodeExporter
Copy link
Contributor Author

any updates on this bug. Would be nice to have the autocomplete feature 
working. 

Original comment by [email protected] on 4 Feb 2015 at 8:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant