Welcome, Guest
Username: Password: Remember me

TOPIC: Adding a Button to a Front End Form Layout?

Adding a Button to a Front End Form Layout? 06 Mar 2012 01:48 #1508

  • iconvisual
  • iconvisual's Avatar
  • Offline
  • Senior Member
  • Keen Joomla! 1.7 Developer
  • Posts: 53
  • Thank you received: 5
  • Karma: 1
Hello All,

I need to modify one of my Front End Form Layouts so that as part of the data entry there is a Button which when clicked Opens Up another Front End Layout Form in a PopUp Window.

Example is; Main Front End Layout Form captures Sales Lead Data - but I need to also capture Diary Notes for each Lead, and so a button/link in the main layout for "Add Diary Notes" would popup the Diary Notes Front End Layout Form.

Can anyone please point me in the right direction and maybe some simple code snippets example? Obviously I am working within XXXZ_form.php to make changes?

Thank you,

Edward
Keen Joomla! and PHP/MySQL developer. Excited about J-Cook.
The administrator has disabled public write access.

Re: Adding a Button to a Front End Form Layout? 12 Mar 2012 14:33 #1570

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
In the JDom call, add the properties
'href' => 'index.php?your_form_url'
'target' => 'modal'

That's all.

But for the moment not generated with Cook, because you will face the problem of auto-closing the modal box when finished.

So it is not perfect.
try to get it out and please share your source code.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Adding a Button to a Front End Form Layout? 13 Mar 2012 10:25 #1584

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Why not simply ask the user to close the box when data is submitted ? Will the date be passed to the "main" form ?
The administrator has disabled public write access.
Time to create page: 0.121 seconds

Get Started