I’ve been trying to get a Formit signup form working and i’ve got some weird issues happening.
IE:No matter how many times i change the &emailTpl, &emailSubject and &emailTo
values the form keeps using the original values.
I’ve even tried creating whole new resources and chunks and nothing in form changes.
That is I can make changes to the Resource Title and text on the page and see that those take.
But when I change the values in the Formit, even though i can see the changes in the chunk, when I run the form on the site it reverts to the old Tpl, email address and Subject.
Has me mystified.
Can’t be caching issue unless Formit has its own weird caching process.
I can’t see anything wrong in your setup (aside from the missing html and autocomplete stuff). Any luck with muzza’s suggestion of calling the placeholders uncached in the email chunk?
Create a snippet called markHook and place this in it:
<?php $modx->log(modX::LOG_LEVEL_ERROR, 'My hooks are working fine.');
Use this formit call and submit the form (it wont do anything). Then go and check your error log and ensure that the message above is printing out to the modx console.
[[!FormIt? &hooks=`markHook` ]]
If it works then go ahead and restore your original call and place the markHook at the start of the hook order and submit the form. Does it still log out to the console? If so but you’re still not getting any results then try taking out validation, redirect, keep stripping the form down until it works and then build it back up until it breaks. Narrow down exactly what’s causing the problem.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.