Page 1 of 1

Submit Button Appears

Posted: 2020-06-22 03:26
by jaddison
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.jpg
submit button.jpg (128.58 KiB) Viewed 3285 times

Re: Submit Button Appears

Posted: 2020-06-22 03:38
by D Oliveira
try inspecting the element, get the id or class, and with javascript set display = none

Re: Submit Button Appears

Posted: 2020-06-22 06:06
by jaddison
Thanks for answering

id=“EnterAction”

What would the javascript be to hide this and should I insert into the Items.php hook file?

Regards

Re: Submit Button Appears

Posted: 2020-06-22 14:25
by D Oliveira

Code: Select all


?>

<script>

document.getElementById( '#id' ).style.display = 'none';

</script>

<?php


Re: Submit Button Appears

Posted: 2020-06-23 23:27
by jaddison
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

Re: Submit Button Appears

Posted: 2020-06-24 05:35
by fgazza
Hi!
Try to check this post:

viewtopic.php?f=7&t=3153#p10754

Bye!

Fabiano

Re: Submit Button Appears

Posted: 2020-06-27 04:34
by jaddison
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