Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • iconvisual
  • iconvisual's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Keen Joomla! 1.7 Developer
  • Posts: 53
  • Thank you received: 5
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.

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
Why not simply ask the user to close the box when data is submitted ? Will the date be passed to the "main" form ?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.075 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started