Millisecond Forums

How do I display the subject number on a single page?

https://forums.millisecond.com/Topic19844.aspx

By thestruggleisreal - 10/11/2016

All I would like to do is display the subject number on a single page at the end of the task. How can I do this? I'm assuming maybe a text element? However, I don't know how to insert the according subject number.. thanks for your help!
By Dave - 10/11/2016

You can simply do

<expt>
/ postinstructions = (yoursubjectnumber)
...
</expt>

with

<page yoursubjectnumber>
^Your subject ID is <%script.subjectid%>.
</page>
By thestruggleisreal - 10/12/2016

Thanks once more, Dave!
By JanaS - 10/25/2016

I would like to display the subject number on my end page of the task. Could I use the same code? And where do I have to put it? 
By Dave - 10/26/2016

If your task already has an "end page", you can include the subject number there. If the "end page" is a <page>, see the example in this post. If the "end page" is a <trial>, you include the subject number in a <text> element displayed by that <trial> in the same way.

If your task has no "end page" yet, add the <page> element to your script and display it via the <expt>'s /postinstructions attribute.
By JanaS - 10/26/2016

Thanks a lot, it finally works!