JustCode : Ask a read only question

This code will show you how to display a question on the page in Readonly mode.

Metadata(en-AU, Question, label)
    Q1 "This is my text question" text;
End Metadata

and the routing

****************************************
' Designed by : Smarter Dimensions
' Last Updated : 4th August 2009
' ask a read only question
' ****************************************

Routing(Web)

' First way to make a question readonly
Q1.show()

' Second way
QDate.Style.Control.ReadOnly = True
    Q1.ask()

End Routing

Leave a Comment