Skip to main content
DAOJ
Known Participant
August 23, 2017
質問

Validate checked checkboxes before allowing signature

  • August 23, 2017
  • 返信数 1.
  • 984 ビュー

I have a task list with a checkbox against each task. I would like a user to complete each task and check each matching checkbox to show the task is complete. Once and only once all tasks are complete should they be permitted to sign. How do I impose such a condition on the signature field?

このトピックへの返信は締め切られました。

返信数 1

try67
Community Expert
Community Expert
August 23, 2017

You can't do it directly. The way to do it is to hide the signature field entirely and use a (hidden) field's calculation script to determine if it should be made visible, based on the state of the check-boxes.

DAOJ
DAOJ作成者
Known Participant
August 24, 2017

Thank you again.  That seems straight forward enough.  I'll give it a go and let you know if I have any issues.

Inspiring
October 2, 2024

Can also make read only.  Run this code in the checkbox field.

 

if(this.getField("[name of check box field]").value == "Off")
this.getField("[name of signature field]").readonly = true

else
this.getField("[name of signature field]").readonly = false