Page 1 of 1

Unwanted submit button

Posted: 2020-09-28 16:10
by jangle
Hello AppGini Experts.

I have added a logo to my tableview with the following code in hooks.
<html>
<head>
<title>Center an Image using text align center</title>
<style>
.img-container {
text-align: center;
}
</style>
</head>
<body>
<div class="img-container"> <!-- Block parent element -->
<img src="images/covid_header.png" alt="COVID Logo">
</div>
</body>
</html>
The logo looks great but has an unwanted submit button on it. See photo.

Any thoughts? All help appreciated.

Thanks

Jim



Code: Select all

<input id="EnterAction" type="submit" style="position: absolute; left: 0px; top: -250px;" onclick="return enterAction();">

Re: Unwanted submit button

Posted: 2020-09-28 16:12
by jangle
The code block is from the inspector....

<input id="EnterAction" type="submit" style="position: absolute; left: 0px; top: -250px;" onclick="return enterAction();">

Thanks

Re: Unwanted submit button

Posted: 2020-09-28 19:53
by pbottcher
Hi,

where did you put your code?

Re: Unwanted submit button

Posted: 2020-09-29 02:03
by jangle
Hello,

Thanks for jumping in...
Code went at the top of the tablename.php hooks file. Before the <?php tag.
Is there a better way to put a logo (png) on a table view.

Thanks!!

Re: Unwanted submit button

Posted: 2020-09-30 06:24
by pbottcher
Hi,

you can try to add to the hooks/tablename-tv.js file the following:

Code: Select all

$j(function(){
  $j('#EnterAction').hide();
})

Re: Unwanted submit button

Posted: 2020-10-02 21:07
by jangle
Thank you sir. I will give it a try!!!

Re: Unwanted submit button

Posted: 2020-10-03 13:24
by jangle
That did the trick!!!

As always, thank you very much!!

Jim