Page 2 of 2

Is it possible to edit more than one database entry at a time?

Posted: Fri Jun 05, 2015 2:12 am
by Ellen Schlechter

I realize that but I am having trouble finding an example online.


Is it possible to edit more than one database entry at a time?

Posted: Fri Jun 05, 2015 3:52 pm
by Ellen Schlechter

Would something like this work? And if it would, where would I put it?

input[type="checkbox"] {
display: none; /* visibility: hidden works too */
}​


Is it possible to edit more than one database entry at a time?

Posted: Sat Jun 06, 2015 3:07 am
by Ellen Schlechter

I also found this:

codedocument.getElementById("myCheck").hidden = true;/code

Source: http://www.w3schools.com/jsref/tryit....

Then I just changed from disabled to hidden.

In that example, I think I got the result that I wanted. My question is how would I add that with Appery? Would I just run the JS on page load? Then where it says 'myCheck' would I just put the checkbox component name?


Is it possible to edit more than one database entry at a time?

Posted: Tue Jun 09, 2015 7:19 pm
by Ellen Schlechter

Hi any suggestions here?


Is it possible to edit more than one database entry at a time?

Posted: Wed Jun 10, 2015 10:14 am
by Serhii Kulibaba

Ellen,

You need:

1) Add this CSS:

pre.hideCheckbox::after{
display:none!important;
}/pre

2) Run JS below to hide checkbox "checkboxName":
preApperyio("checkboxName").find("label").addClass("hideCheckbox");/pre


Is it possible to edit more than one database entry at a time?

Posted: Wed Jun 10, 2015 9:50 pm
by Ellen Schlechter

So on #2, I change checkboxname to the name of my checkbox, obviously. But my question is what do I change "label" to. I am not trying to hide a label. Just the box that actually gets checked.


Is it possible to edit more than one database entry at a time?

Posted: Thu Jun 11, 2015 9:45 am
by Serhii Kulibaba

It is the "label" tag. You shouldn't change it. This code won't hide label, just checkbox.


Is it possible to edit more than one database entry at a time?

Posted: Thu Jun 11, 2015 1:49 pm
by Ellen Schlechter

Thanks! So now once I want the boxes to appear, how do I remove that code?


Is it possible to edit more than one database entry at a time?

Posted: Mon Jun 15, 2015 7:53 pm
by Serhii Kulibaba

You need just remove this class:

Apperyio("checkboxName").find("label").removeClass("hideCheckbox");