Forum Replies Created
- Simon Bame
Unfortunately the code didn’t work and still at a loss in getting the field value. I have asked for support from someone who works with Gravity Forms and creates snippets which is the same chap that created the snippet that I posted above. So hopefully will have some success.
I would like to thank you very much for your quick support and a fantastic plugin, you are correct in having the label Legend as you are.
myCred is a wonderful plugin and is the only one which offers these features.
I will let you know when I get a response so you can pass the support on to others if required.
Just double checking that this goes into the functions.php of my theme?
Thanks again.Simon Bame
Is there any way of changing the hook to look at the value in the field rather than default value as the code snippet places it into the field (not the default value)
That is where the problem is.Simon Bame
Ignore that last message as the entry does update but balance does not update and snippet is in functions.php.
Please see message before.Simon Bame
Or maybe I got the code in the wrong place, where is it supposed to go?Simon Bame
The same field works when I put in a number in the default value and it adds to the balance fine, but it doesn’t work when I use the populate dynamically option in advanced with the field points earned. (The mycred_amount is a hidden field but have tried it not hidden as well.)
The only problem with setting the default value is that the points earned changes depending on the user input. Not sure how to proceed maybe it is not filling out the default value but the field itself if that makes sense?
Thank you for your help so far, it is greatly appreciated.Simon Bame
Ok, so I have managed to get mycred_amount field to populate dynamically using the advanced option and Allow field to be populated dynamically and then putting in the field number using a code snippet (below) I found. But because it seems to populate the field after submission it doesn’t update the user’s balance and no points are allocated at all even for submitting the form. But it shows in entries of Gravity forms that the amount box was filled out automatically.
This is the snippet I found here https://gist.github.com/spivurno/7029518
I did check that the mycred_amount works by putting an amount in default value and it did update the balance.
But having trouble getting it to update from the field points earned.Simon Bame
I see, but can I set this field (mycred_amount) to be hidden but be pre-populated by the field points earned? which is on the same form.