avniproject / avni-webapp

Web application for management and data entry
https://avniproject.org
GNU Affero General Public License v3.0
12 stars 42 forks source link

Disallow changing of form element type #1257

Open mahalakshme opened 4 months ago

mahalakshme commented 4 months ago

Issue:

During testing or when self-service organisations change the form element configuration(Single to Multi-select, repeatable to non-repeatable) of question type(Coded or QuestionGroup) without knowledge, the app breaks.

Analysis:

Should not allow to change them since anyways 'app designers' can always create new form elements and migrate the data to it.

AC:

Screenshot 2024-08-06 at 12 21 58 PM Screenshot 2024-08-06 at 12 21 19 PM

Example mockup for showing error message:

Image

Out of scope:

Introducing new data types that will support switching between types.

Analysis notes:

Suggestion:

vinayvenu commented 2 months ago

If no forms have been filled, we can allow the change.

petmongrels commented 1 month ago

UX Inputs

mahalakshme commented 1 month ago

@petmongrels in cannot change the type, we should provide the name of the form element with group name - if the error message is going to be near the place where change has happened, pin-pointing might not be needed. AC is to mention it nearby and hence didn't mention in the message.

I understand the message is different from AC. But applies.

1t5j0y commented 1 month ago

Fixed form validation server side error messages to include more information of the offending elements. Kept webapp error message as-is.

dinesh2096 commented 5 days ago

Reference video :

Click here to watch the video