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

TOPIC:

Auto-Filling Form Fields 03 Aug 2013 13:21 #10668

  • Savino
  • Savino's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Hey guys,

I am getting there working with cook.

This is a form on the back end of my component:
i.imgur.com/R2pTk7W.png

I would like to automatically fill the reference text field at the top using the PHP TIME() function. I.e. when I click 'New' on the collections side of my backend I want the reference text field to automatically be filled with the TIME() function.

I also want to make the pending amount field automatically fill with Total Amount - Amount Paid.

I'm sure that I have to change a few files of my component but I'm unsure of where to look.

Thanks for your help.

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

Last edit: by Savino.

Auto-Filling Form Fields 07 Aug 2013 16:26 #10710

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You must fork the model of the concerned table.
Have a look in loadFormData()
Coding is now a piece of cake

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

  • Page:
  • 1
Time to create page: 0.074 seconds

WOW.. WOW... WOW... This is awesome... in less than 3 hours of work I have my application done... this is simply the best tool I ever tried to generate Joomla Components... Thank you very much for this tool and your answer.. it helped me a lot... My friends here in Brazil are going nuts with this...
Griiettner (Forum)

Get Started