Keyword for Online Poll Results - Option Label?


(Tbaatar) #1

Matrix Version: 5.4.3.1

Hi,

Is there equivalent keyword for %poll_option_label% but for the voted results page?
I want to send the voted result into CRM with %globals_post_XX% without using Javascript.

Thanks.
T


(Bart Banda) #2

Yep, on the Results List Format you can use the %poll_option_label% as well, is that what you need?


(Tbaatar) #3

Hi Bart,

Yes, however it does not print the voted result option.

edit: i meant, i need to print it in the Results Format as the Results List would print all option label.


(Bart Banda) #4

Not sure I understand, do you want to print the label of the most voted poll option inside the Results Format bodycopy? If that’s the case, then no, that’s not possible. You might be able to bring all the voted options together in a SSJS function and then print the highest voted one from that?


(Tbaatar) #5

Hi Bart,

Sorry for giving you a very vague explanation.

Basically, when the user votes the online poll i need to print ‘only’ the voted option none of the other results.

The voted options label (not the id) will need to be sent to CRM.

I have the entire thing working in JS by copying the value of the label into hidden input field and on submission result page it gets printed with %globals_post_foo%

I was just hoping there would be some secret keyword to print it as opposed to using JS and globals method.

Thanks.


(Bart Banda) #6

Ah gotcha.

No keyword available for that unfortunately. But seeing as it’s a POST request, you might be able to get to it by using %globals_post_X% ?

If not, then JS would be the only way.