Unwanted submit button

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Unwanted submit button

Post by jangle » 2020-09-28 16:10

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();">
Attachments
submit.png
submit.png (36.44 KiB) Viewed 1855 times

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Unwanted submit button

Post by jangle » 2020-09-28 16:12

The code block is from the inspector....

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

Thanks

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Unwanted submit button

Post by pbottcher » 2020-09-28 19:53

Hi,

where did you put your code?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Unwanted submit button

Post by jangle » 2020-09-29 02:03

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!!

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Unwanted submit button

Post by pbottcher » 2020-09-30 06:24

Hi,

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

Code: Select all

$j(function(){
  $j('#EnterAction').hide();
})
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Unwanted submit button

Post by jangle » 2020-10-02 21:07

Thank you sir. I will give it a try!!!

jangle
Veteran Member
Posts: 89
Joined: 2020-01-18 17:41

Re: Unwanted submit button

Post by jangle » 2020-10-03 13:24

That did the trick!!!

As always, thank you very much!!

Jim

Post Reply