How to disable button when checkbox is checked. vbscript?

How to disable button when checkbox is checked.vbscript

  • How to disable button when checkbox is checked and enable it when a condition is met using vbscript.

  • Answer:

    Sub disableButton() If checkMultiple.value = 1 Then document.form1.cmdButton7.enabled = False End If End Sub Sub enableButton() document.form1.cmdButton7.enabled = False End Sub < i n p u t type="checkbox" name="checkMultiple" id="Multiple" onclick="disableButton )">Multiple

peggie at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

i tried the method but i got the object required "checkMultiple" error. Sub disableButton() If checkMultiple.value = 1 Then document.form1.cmdButton7.enabled = False ElseIf sum = 100 Then document.form1.cmdButton7.enabled = true End If End Sub Multiple

peggie

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.