10 years ago
2
Topic
Hi all,
I'm curious if it's possible to use computation on the field itself (hidden)?
Maybe there is another approach, but I'm trying to design userpoint system on seblod

For one of my forms i've created 3 fields with storage standard->user->fieldid
  1. basic field where defined how much points user gain/loose - with some conditional states
  2. buffer field to get current amount of points from DB
  3. final field writes to DB simple formula 3=1+2
I faced with problem that I'm obliged to set store for the second field exactly the same as for third field. And this dosn't let to write in DB sum. I always get =2

any suggestions?

Get a Book for SEBLOD
693 Posts
rpoy
10 years ago
1
Level 1
Hi Jay,

Would the Code Pack: After Store be a solution? 

thanks,

Randy
10 years ago
0
Level 2
Hi Randy, thanks for solution. I've bought the plugins (unfortunatelly documentation is really poor, I have to study PHP now :) )
Regarding computation rules, I found out that if let say add a rule to summarize two values from input field,...it doesn't work as expected.

Unfortunatelly, computation is done "on change", so if you let say create two fileds A & B, and if you will apply A+B rule on B field,...and will change A several times,...the B will be summarized exactly the same times. "on keyup" the same story.
Seems that something is missing in js.

I've added request in tracker because I don't have experience to change the functionality
http://www.seblod.com/resources/tracker/11522?thanks=seb_tracker_comment





Get a VIP membership