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

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started