Yii Framework Forum: Scenario Combination - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Scenario Combination Rate Topic: -----

#1 User is offline   Sergiu Precup 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 22-July 11

Posted 21 September 2012 - 03:56 AM

Hello All,

does anyone know how to validate captcha depending on scenarios?

For example I have same form for three scenarios:

1. an admin register an user (in this case i don`t need captcha)
2. an user registers himself and choose from a country drop down "Romania" (in this case i set "romania" as scenario because i have several different validations on fields)
3. an user registers himself and choose "Another Country" from same drop down box(in this case i set "another" as scenario)

I want that captcha field to validate only for "romania" and "another" scenarios and to be ignored when an admin registers an user.

Thanks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users