Online Poll - Current question


#1

Is there any Global keywords or other methods available to print the ID of an Online Poll asset’s current question (from another asset)?

The following would serve our purposes well.
%globals_asset_attribute_poll_question_id:%

Cheers for any enlightenment.


(Bart Banda) #2

%poll_question_id% is available since version 5.4.0.2: https://matrix.squiz.net/manuals/keyword-replacements/chapters/online-poll#any-bodycopy


#3

Thanks Bart, I’m trying to access that keyword remotely though - unless I’m missing something.

Reason for this, I have a script that utilises the current poll ID as a unique local storage value. Currently I update this manually each time a new poll question is added, and am trying to streamline the process.


(Bart Banda) #4

Try something like this maybe:

%globals_asset_data_attributes:1234^index:active_question^index:value%

Assuming you are on 5.4.2.0 or higher?


#5

Sorry Bart, missed that piece of vital information - we’re on 5.4.1.3 which is probably why the provided keyword failed for me - more reasons to push for an upgrade :grin: