I’ve used the :notempty modifier to hide the p-tag while there is no message to prevent my layout to be broken up by unnecessary margins etc. But after submitting the form nothing is showing up.
If I implement it directly without the modifier, it works fine:
<p class="success">[[!+fi.successMessage]]</p>
I thought that maybe the successMessage technically is never empty because it’s defined in the FormIt hook, but it’s also not showing initially when the page is loaded. Did I use the modifier the wrong way or what am I missing here?
No the call comes after the form and I want to display the message above the form. Is that the issue? I thought because it worked without the modifier that it wouldn’t matter…
If I need to have it after the form how can I achieve the same result?
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”.