General discussion

Locked

making button invisible on form load

By Shanghai Sam ·
Hello there
on submit of a form, Frequently i have to call same form with updated datas. when all the forms are fully filled by user & the variables decreases & finally becomes zero. after the last data input of the form & when the varibales becomes zero I want to make the "SUBMIT BUTTON" invisible.
Please suggest codes attached.

<html><body><form>
<center><input type=button name="button1" value="Next page" onclick= "gotonextpage()"></center>
</form></body></html>

<% if totalcat_prod =0 and nooftable = "" then %>
<html><head>
<script>
function unablebutton()
{ (document.f5.button1.style="VISIBILITY: hidden");
}
</script>
</head><body onload = "unablebutton()">
<form name = f2>
Load report for user
</form>
</body>
</html>
<%end if%>

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

making button invisible on form load

by hijukal In reply to making button invisible o ...

I'm not too familiar with the <LAYER> tag, but I think it will easily provide the functionality for which you are looking.

You can make the specific layer in question visible and invisible.

Check www.w3.org for more information.

Collapse -

making button invisible on form load

by Miss Kitty In reply to making button invisible o ...

On the condition = 0
cmdSubmit.Visible = False
I do this in application that is being used now. Until the user selects a specific format, the command buttons, text fields, and labels are not visible. When they meet the condition, the following sub is run.

Private Sub cmdTicket_Click()
txtTicket.Visible = True
Label4.Visible = True
cmdContinue2.Visible = True
With frmMain
.Show
End With
End Sub
Cathy

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Software Forums