rajendra781 wrote:How to make Mandatory fields in custom form before agents hangup the call
Your challenge is to determine what you intend to do if they skip the field. It's not legal to have their chair shock them, and it's not viable to refuse to submit the page (which loses the data! kinda the opposite of the goal here). So, your page refuses to submit, the agent closes his browser, the data is lost and your custom code was pointless.
I could envision a solution where it's handled in multiple stages:
# Turn required fields red as they are skipped
# If an agent submits with fields still missing: the vicidial agent page should refuse to allow them to "resume" and force them to a custom page where they fill in the missing information. A manager override would then be necessary to get them past this block (or filling in the information, of course).
Another method would be to generate an email to a manager upon locating an entry with required fields missing (no code changes for Vicidial here, external app!).