Expand my Community achievements bar.

SOLVED

Locking check boxes

Avatar

Level 1

Hello,

Is there a way to lock a check box after the selection has been made? Also, after a selection has been made i'd like to lock down another check box or two? Thanks!

Dave

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Simply create a new line in the script and use the same technique of using the name of the checkbox.access = "readOnly"

Paul

View solution in original post

4 Replies

Avatar

Former Community Member

I woudl assume that you want to lock it after they have left the field and not simply when the click it (so they can change their minds). You can use this command on the exit event of the checkbox:

Name of CheckBox.access = "readOnly"

Paul

Avatar

Level 1

Thanks Paul! how would i make it so that the other boxes in become read-only so that they can't be checked?

Dave

Avatar

Correct answer by
Former Community Member

Simply create a new line in the script and use the same technique of using the name of the checkbox.access = "readOnly"

Paul

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----