-
- 1 Posts
I have created a signup/membership form which due to the nature of it, has 2 formit calls.
Now when the first form is submitted and validates ok, it is passed to a second ’form’ - this is more of a review your order/membership page, but needs to be a form as it is submitted to a payment gateway.
When the data from form 1 is passed to the second for ( i have the store=1 value set and the FormItRetriever call before second fromit call)
All the relevant text is filled. What i would like to do it is add in a prehook on the second form it call that takes the creditcard number and masks all but the last 4 digits. But can seem to access the the creditcard number from a prehook.
Should it be possible?
-
- 24,544 Posts
The preHook on the second form will only execute after that form is submitted, so it probably won’t mask the numbers until it’s too late.
How about making it the last hook in the first FormIt call?
-
- 1 Posts
cheers bob, that worked a treat..
-
- 24,544 Posts
I’m glad to hear it. I wasn’t sure it would work.