I am on Drupal 7 and I have issue. I want to set a token system that will make people buy token from their user account settings in order to be able to do some particular actions on the site.
So I've created three fields in the user's form with the help of Display Suite:
- field_buy_tickets (Yes/No) : Yes if the user wants to add more tickets. If "Yes", field "field_nb_of_tickets" appears.
- field_nb_of_tickets : is a list of numbers from 1 to 9 that the user choose one item.
- field_avoir : When the user Save the changes, the number in the item chosen in "field_nb_of_tickets" should be added to the this field_avoir. I chose this field to be "computed" because I want the new value to be added to the old one, not to override it.
I was sure that it would work well, but I get an error. After a few time trying to make it work, I am still at the same point.
Can somebody help ?
Here are some pictures to illustration the case: