I am creating a custom form and storing data in custom table. I was wondering if there is any method to apply field level permission like
$form['value']['#permission'] = array('access this field');
I know I am having field permission module to apply permission on core fields but how I can achieve this?