If you want to apply conditional validation on 'Entertainment Website Port' or 'Shopping Website Port', then you need to add 'Browser' input as 'Chrome'
{{userForm.controls?.browser?.errors?.port.message}}
If you want to apply conditional validation on 'Shopping Website Port' then you need to add 'Browser' input as 'Chrome'.
Conditional Expression with type 'string'
{{userForm.controls?.shoppingWebsitePort?.errors?.port.message}}
enter port number only
Shows custom message.
{{userForm.controls?.educationalWebsitePort?.errors?.port.message}}