opensrp / opensrp-client

Android app for Frontline Health Workers (FHWs).
Other
15 stars 32 forks source link

Constrain data entry when exceeding specified character limit. #190

Open maimoonak opened 8 years ago

maimoonak commented 8 years ago

Our QA tem has reported that the fields which need to be constrained to specific length are allowing entering more characters than allowed limit. There should be a way to actually disable data entry incase characters exceed specified limit.

Ex: name should be a string of 3 to 25 characters. Butwhile entering data user can enter more than 25 characters which then show error message. Rather it should disable data entry after 25 characters.

Is it possible?

cafootitt commented 8 years ago

Can you put link to xlsform? I don't know if this is possible. If the error message appears correctly, then that might be the best you can do. User can't submit form until field is fixed and within constraint.

maimoonak commented 8 years ago

https://docs.google.com/spreadsheets/d/1usAh3zi_QbrMi5jNjtAauQvWdVh5thJ1k6HqzPVz1QU/edit#gid=1230232994 Xlsform works perfectly fine and constraint doesnot allow data submision wiithout correct value. Our QA team reported this issue and we can not close a ticket without resolving or answering. Thats why this ticket is created here. Android and Html allow max length for input fields so maybe a low priority thing to look into. This is a very low priority though.

koros commented 8 years ago

I am not sure about the level of customization required to get this feature, we can leave it open for now then i'll revisit later.