Custom button in Add/Edit page?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
darkdragon83
User
Posts: 13

Custom button in Add/Edit page?

Post by darkdragon83 »

I need to add 3 additional button in Add/Edit page.

How can i do?

thanks


mobhar
User
Posts: 11905

Post by mobhar »

Similar to this topic: http://www.hkvforums.com/viewtopic.php?f=4&t=33217

All you need to do is to use "Page_Render" server event that belongs to either "Add" or "Edit" page.


darkdragon83
User
Posts: 13

Post by darkdragon83 »

I've alredy tried this solution but it does not work

Fatal error: Call to a member function Add() on a non-object in XXX on line 838


mobhar
User
Posts: 11905

Post by mobhar »

Okay then. That solution above cannot be implemented for "Add" and "Edit" page, indeed. :(

Put the following code into your "Page_DataRendering" server event:

$header = "<button class='btn ewButton' name='myFirstBtn' id='myFirstBtn' type='submit'>My First Button</button>&nbsp;<button class='btn ewButton' name='mySecondBtn' id='mySecondtBtn' type='submit'>My Second Button</button>&nbsp;<button class='btn ewButton' name='myThirdBtn' id='myThirdBtn' type='submit'>My Third Button</button>";


darkdragon83
User
Posts: 13

Post by darkdragon83 »

mobhar wrote:
Put the following code into your "Page_DataRendering" server event:

$header = "<button class='btn ewButton' name='myFirstBtn' id='myFirstBtn' type='submit'>My
First Button</button>&nbsp;<button class='btn ewButton' name='mySecondBtn' id='mySecondtBtn'
type='submit'>My Second Button</button>&nbsp;<button class='btn ewButton' name='myThirdBtn'
id='myThirdBtn' type='submit'>My Third Button</button>";

It works

Thanks a lot.


Post Reply