Seeking guidance on validating user input in Angular6 PrimeNG pInputText for a specific URL pattern, such as , possibly triggered on blur event.
This particular field used to be part of a form but has since been relocated to a more complex 6-part form interface. Clicking a button in this new setup should retrieve data related to the URL from a database and populate other fields in the form for editing purposes.
Within a team management application for a bank, this input field is intended for entering and validating resources like JIRA or Bitbucket repositories.
What would be the best approach to implement this validation? I've come across mentions of using the ngForm directive, however, I am concerned about potential interference with the existing complex form or any unintended side effects. Could having two forms on one screen cause conflicts?
Additionally, there is a 'pattern' attribute available in the input field, so it may be possible to achieve the validation without relying on a full form setup.
Your advice and assistance on this matter are greatly appreciated.
Thank you in advance, Oleg.