This topic is locked

Create "Apply" button in Add Page ...

5/4/2010 2:02:50 AM
PHPRunner General questions
O
overmars author

For the purpose of correcting, I want to add a button (let say call as "apply" button) on Add page.

The difference with "Save" button existing, if using that, after save the navigation still in position where we fill the last record ( not blank sheet).

How make this? Need suggestion ....

Thanks,

A
ann 5/4/2010

Hi,
To create new button Apply which is used to save record and redirect then to the Edit page you can follow the steps below. Go to the Add/Edit page on the Visual Editor tab in the HTML mode.

Add the following code(bold), e.g. after the Save button code:
> {BEGIN save_button}<SPAN class=buttonborder><INPUT class=button value=Save type=submit name=submit1 {$savebutton_attrs}></SPAN>{END save_button}
<SPAN class=buttonborder><INPUT id=submit2 class=button value=Apply type=submit name=submit2></SPAN>


Then on the Events tab in AfterAdd/AfterEdit function add:

if ($_REQUEST["submit2"]=="Apply")

{

header("location: TableName_edit.php?editid1=".$keys["FieldName"]."");

exit();

}
O
overmars author 5/4/2010

Dear Ann,
Thanks for your guide ....

But, after I click "Apply" button, the navigation go to list page, not edit page ... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=49542&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

Any another suggestion?
regards,

OV



Hi,
To create new button Apply which is used to save record and redirect then to the Edit page you can follow the steps below. Go to the Add/Edit page on the Visual Editor tab in the HTML mode.

Add the following code(bold), e.g. after the Save button code:
Then on the Events tab in AfterAdd/AfterEdit function add:

if ($_REQUEST["submit2"]=="Apply")

{

header("location: TableName_edit.php?editid1=".$keys["FieldName"]."");

exit();

}


Sergey Kornilov admin 5/4/2010

I would suggest post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.