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

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started