No, not specifically like that, although the question-and-answer plugin does something approximating this, where the post selected as the correct answer will be pinned under OP (It also appears in the regular flow of replies.)
How to cancel topic submit?
Solved
General Discussion
-
Hi!
Continue of the topic: https://community.nodebb.org/topic/15842
I want to cancel topic submit, if a certain condition is not met.
How can this be done?
thanks!! -
@baris said in How to cancel topic submit?:
and set payload.error.
How to set payload.error? Thank you!
this not work:$(window).on('action:composer.check', function (payload) { if (span1.innerText === 'a') { payload.error('test') } });
-
@baris Thank you!!!!