How to control Data Card field with a Radio Button

I am trying to control a Data Card field with a Radio Button. I want the Part No field to either be free format text input, or the SW filename. I created a Radio Button to "select" if the user wants the Part No to be the same as the filename. I attached a screenshot.

Thanks, Todd

SolidworksSolidworks Pdm enterprise Pdm