Hi,
I am using an formula to check if 'website' url contains @ or / character. I want to raise error if this character is found in url.
I am getting error in log file when using formula as recordService/forbidden is not function.
	
							
						
					I am using an formula to check if 'website' url contains @ or / character. I want to raise error if this character is found in url.
I am getting error in log file when using formula as recordService/forbidden is not function.
PHP Code:
	
$site = website;
if (string\contains($site, '@') || string\contains($site, '/')){
    //throw exception as not allowed to user.
    
    recordService\throwForbidden('Error url contain @ , /');
} 

Comment