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.056 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started