Try with cached snippet call for the event snippet:
[[formToggle]]
No difference, the error is still:
Fatal error: Call to undefined function: mytest()
edit: if it says ’Fatal error: Call to undefined function: mytest()’, then try renaming the function to my_test() and changing the event param the same.
1. Is the page cached? Try uncaching it.
2. add an echo to myTest function and call it by itself on a page to test it
3. have myTest print_r the $fields
4. try calling formToggle with [!formToggle? !] (add the ? after it)
Arrg! I don’t think I EVER would have thought of caching being the issue. I turned off the ’cachable’ option in ’Page Settings’ and it’s good to go. Thanks.
What exactly are you trying to do? Because you might not need to set a placeholder.
In MODx 96, if somethings not working- check the cache, then check ` ? and other input errors. Those 2 things will get it 90% o the time.
I’m trying to set placeholders which contain the HTML to hide/display specific forms on my page. This way I can control which forms are shown or hidden for the error and thank you pages in eForm. It really all stems from a JS effect I’m using on the page which hides and displays forms based on a radio button click.
Not sure what you mean by `?
Quote from: bunk58 at Jun 01, 2008, 04:41 PM
I think ProWebscape is saying check you are using ` (backticks) and ? (question mark) in your snippet call i.e.
[[MySnippet? ¶m=`1`]]
Bunk is correct.
So let me get this straight (im being a dunce today). You have 4 forms. You want the user to:
1. submit the first form
2. check validation per your snippet and show the second form
3. repeat for next forms
Is that correct?