Security

 View Only

How to set the value of "expire_after" field depending of another form field value ?

This thread has been viewed 0 times
  • 1.  How to set the value of "expire_after" field depending of another form field value ?

    Posted Jan 29, 2013 05:18 AM

    Hello,

     

    I would like to customize the "MAC create" form in order to set a customized value to the field "expire_after" depending of the option selected by the user for another field of the form "user_type":

    For example, I would like to have :

    - "expire_after" set to "1 month" if the field "user_type" has the value "employee"

    - "expire_after" set to "1 week" if the field "user_type" has the value "consultant"

     

    Do you see a way to implement this?

    Thanks,