By Mirkozzo on
I have set #states with required option when field B is checked, field with required #states is a select with radio buttons, when field B is checked, it show red asterisk radio buttons in title and all radio button of field.
I want the red asterisk only on the title of the field
Comments
Field A is boolean with 2
Field A is boolean with 2 radio button, when #States set required, 3 red asterisk appear, 1 on title of field and 2 on radio buttons
My code: IF Field B sas value -> Require Field A
Required Field screenshot
This is my screenshot
Required Field screenshot
There is an open core issue
There is an open core issue for this https://www.drupal.org/node/1017882. There is a range of possible workarounds https://www.drupal.org/node/141790.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors