This topic is locked

Add new option

2/3/2007 4:25:24 PM
PHPRunner General questions
J
JZint author

I have the "Add New" option working on several of my pages. On several of my pages I have the option to add a new product, which has several fields. The problem that I am running into is when you add new, it opens a new window where you can add the entry and then the window closes and auto fills the field. When you use the add new product link on my page, it opens a new window, but it does not auto fill the fields. You have to refresh the Add page to get the new product to show up in the drop downs. Is there a way to set this up to work?

Alexey admin 2/5/2007

Hi,
please give me a URL where I can see this error.

Send it to support@xlinesoft.com

J
JZint author 2/5/2007

It is not really an error. The option to add new item is working for single items. The link that I have added is to add a whole new product with multiple fields. I created a link on my form that links to _products_add.php which brings up a new screen. This is not the same as allowing user to create a new entry on the fly. You click on the link, enter the information and close the window. Instead of it autofilling the information into the field, you have to reset the page so that the new entries will show up in the drop downs. Like I said it is not an error, I just need a work around. I have looked at the _inventory_detail_addnewitem.php page and see how this works, but I see it set up for just one field, I need it to do it for multiple fields.

Sergey Kornilov admin 2/6/2007

You can use the same approach addnewitem.php uses. Modify the code that adds a new entry to dropdown box to add new entries to several fields on the Add/Edit pages.