ussd-menu-builder icon indicating copy to clipboard operation
ussd-menu-builder copied to clipboard

Prepend a message after data invalidations

Open ErickMwazonga opened this issue 4 years ago • 2 comments

When the user is taken back to the same step due to data invalidations. It should add an invalid message.

ErickMwazonga avatar Oct 16 '20 21:10 ErickMwazonga

@ErickMwazonga Did you ever find a solution to this?

njau58 avatar Mar 07 '22 11:03 njau58

@njau58, unfortunately, I did not.

ErickMwazonga avatar Mar 08 '22 11:03 ErickMwazonga

You can use the defaultNext state to handle the case where the user enters invalid data. Then in that state you can display the invalid message. See: https://github.com/habbes/ussd-menu-builder?tab=readme-ov-file#defining-states

habbes avatar Apr 12 '24 10:04 habbes