Welcome, Guest
Username: Password: Remember me

TOPIC: Auto-Filling Form Fields

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

  • Savino
  • Savino's Avatar
  • Offline
  • New Member
  • Posts: 6
  • Karma: 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.
Last Edit: 03 Aug 2013 13:22 by Savino.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
You must fork the model of the concerned table.
Have a look in loadFormData()
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.102 seconds

Get Started