May 15th, 2010, 10:06 AM
Hi Mikevid,
Sure no worries. There's a couple of ways to do this, but it rather depends on how that code you found works. Is it javascript or PHP?
If it's javascript, all you need to do is store that information in a hidden field (or visible - doesn't matter!) in your form, then tell Form Tools to look for that new form field and store it. You can do this via the Edit Form -> Database tab.
If it's PHP, it'll be more complicated. Again, depending on it's complexity and whether or not it uses separate PHP library files, I'd be tempted to look into the Submission Pre-Parser module. That lets you run your own PHP code prior to it being added to the database. You may find you could just copy & paste that code into the Submission Pre-Parser rule and feed in the values from the POST submission.
Again, this will require that you create an extra field in your form to store that information for each submission.
Hope this helps a little, even in the abstract.![Smile Smile](https://forums.formtools.org/images/smilies/smile.gif)
- Ben
Sure no worries. There's a couple of ways to do this, but it rather depends on how that code you found works. Is it javascript or PHP?
If it's javascript, all you need to do is store that information in a hidden field (or visible - doesn't matter!) in your form, then tell Form Tools to look for that new form field and store it. You can do this via the Edit Form -> Database tab.
If it's PHP, it'll be more complicated. Again, depending on it's complexity and whether or not it uses separate PHP library files, I'd be tempted to look into the Submission Pre-Parser module. That lets you run your own PHP code prior to it being added to the database. You may find you could just copy & paste that code into the Submission Pre-Parser rule and feed in the values from the POST submission.
Again, this will require that you create an extra field in your form to store that information for each submission.
Hope this helps a little, even in the abstract.
![Smile Smile](https://forums.formtools.org/images/smilies/smile.gif)
- Ben