New to the web database world but Enjoying my time with AppGini.
My tablename is "Items" and I have customised the header in the items.php hook file.
code extract:
if($memberInfo['group']=='Admins'){
$header='<%%HEADER%%> <a href="https://www.nswfootballhistory.com.au/T ... s_view.php" class="btn btn-default" style="font-size : 15px">Back to Accessions</a>';
}else{
$header='<%%HEADER%%> <br> <br> <b>Farrer Football League Records (The Crier)</b> <br>
<a href="https://www.nswfootballhistory.com.au/T ... 3">1960</a>
<a href="https://www.nswfootballhistory.com.au/T ... 4">1961</a>
All works fine except i have a Submit Button that I can't seem to remove???
help please
John
Submit Button Appears
- D Oliveira
- AppGini Super Hero
- Posts: 347
- Joined: 2018-03-04 09:30
- Location: David
Re: Submit Button Appears
try inspecting the element, get the id or class, and with javascript set display = none
Re: Submit Button Appears
Thanks for answering
id=“EnterActionâ€
What would the javascript be to hide this and should I insert into the Items.php hook file?
Regards
id=“EnterActionâ€
What would the javascript be to hide this and should I insert into the Items.php hook file?
Regards
- D Oliveira
- AppGini Super Hero
- Posts: 347
- Joined: 2018-03-04 09:30
- Location: David
Re: Submit Button Appears
Code: Select all
?>
<script>
document.getElementById( '#id' ).style.display = 'none';
</script>
<?php
Re: Submit Button Appears
I inserted the code into my items.php as you suggested. I inspected the button and got the id.
I opened the page with no errors but the button was still there.
I inserted some garbage between <script></script> and reloaded the page with no errors.
It seems as though the script is not running?
Thanks again
I opened the page with no errors but the button was still there.
I inserted some garbage between <script></script> and reloaded the page with no errors.
It seems as though the script is not running?
Thanks again
Re: Submit Button Appears
I thought I posted thanks the other day but???
Thank you Fabiano the link sorted out my problem.
Thank you to D Oliveira for helping me also.
I have learnt some new skills.
Regards
John
Thank you Fabiano the link sorted out my problem.
Thank you to D Oliveira for helping me also.
I have learnt some new skills.
Regards
John