I have a rule that checks the user role and if true should set the value of a form to match it, then hide that element so the user doesn't have a choice anymore.
Here's the form element I want to process:
Choose currency...Currency 1
Currency 2
Under rules settings for event I have set "user currency select form is being built"
Conditions: if user has role = National.
For the Action, I choose 'set default value of form element' and enter form element ID ='cid' (Because rules tells me: "Element ID: cid" for that element.)
Under default value I enter '64' because I want the role 'National' matched with 'Currency 1'.
When I access the form rules tells me:
#2.491 ms Condition "User has role(s)" evaluated to TRUE.
456.457 ms Action execution: "Set default value on form element 'cid'"
however when I submit the form (with user role National" the validator tells me I still have to make a selection.
Any advice would be appreciated. Thanks
Aja
Comments
Comment #1
TR CreditAttribution: TR commentedDrupal 6 end of life was 24 Feb 2016. Drupal 6 and Rules 6.x-1.x are no longer supported as of that date, and no bugs with those versions will be investigated or fixed.
Rules Form Support is a separate module in Drupal 7. If this issue is still a problem in the Drupal 7 or Drupal 8 version of Rules Form Support, please open a new issue in that module's queue, with complete details of how to reproduce the bug.