Hello,

I'm using rules to redirect to a from, specifically to the shopping cart page in Drupal Commerce.
I'd like to modify the form so that some fields highlighted in red - as failed validation.
is there a way to do this with rules.

thanks
Idan

Comments

mitchell’s picture

Project: Rules » Rules Forms Support
Version: 7.x-2.x-dev » 7.x-1.x-dev
Component: Rules Engine » Code
jordojuice’s picture

Category: feature » support
Status: Active » Fixed

@mitchell thanks

You should be able to do this with the "Set an error on the form" action in all three stages of processing - form build, validation, and submit. If you have trouble with this or it doesn't work for some reason please reopen this issue.

jordojuice’s picture

Status: Fixed » Closed (fixed)