Soap Star Dylan Patton Charged with Felony Cocaine Crime

5/16/2013 11:21 AM PDT

Soap Star Dylan Patton Charged With Felony Cocaine Crime

Former "Days of Our Lives" actor Dylan Patton has just been charged with felony possession of cocaine with the intent to sell ... TMZ has learned.

We broke the story ... Patton -- who played Will Horton on the soap -- was allegedly selling coke out of his Agoura Hills home. An undercover cop claims he went in, scored the drug and then got a search warrant.

Patton's house was raided Tuesday and he was arrested. He's still in jail. His bail was set at $30k.

He'll be arraigned today. If convicted he faces up to 9 years in State prison.