I have a form template which uses ajax for verification of records and has a banner which changes it's popup depending upon case.
But I am experiencing some problems and needs some feedback. Problems I am facing are:
- popup only pops one time and will not popup again till page is refreshed,
- I am trying to make button disabled if data is being sent but it will remain disabled even if fields are empty. Instead I want form to not send data if fields are empty and user is asked for entering data while button should not be disabled in this case.
Here's a codesandbox link: https://codesandbox.io/s/infallible-pascal-ttucfk?file=/src/App.jsx