Home > Software design >  How to force users to complete their profile in React
How to force users to complete their profile in React

Time:12-08

I want to force users to complete their profile and enter the required informations into their profile before navigating between the other pages in Front with React. How could i achieve it?!

CodePudding user response:

You should add a check (states) before submit and prompt to the user and after that navigate. Or you can disable some parts if the profile is not completed

CodePudding user response:

you can add required to your input fields and put condition before navigating to other page have check that all field are filled then only they can navigate else u cans how them alert to complete that field.

  • Related