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

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started