- Posts: 96
- Thank you received: 7
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
$this->subscribe('beforeQuestionRender'); $this->subscribe('newQuestionAttributes');
Please Log in to join the conversation.
Please Log in to join the conversation.
public function beforeQuestionRender() { if ('N' == $this->event->get('type')) { $qattrs = QuestionAttribute::model()->getQuestionAttributes($this->getEvent()->get('qid')); if (true == $qattrs['isMyPdfBtn']) { $this->debug('is N and btn'); } } }
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Not necessary, but it's better.Thank you as usual! So you mean I should "snapshot" the event attribute inside a scoped variable as soon the event gets fired.
Please Log in to join the conversation.