Add Mode Percentage Field

Talk about implementing of customized templates

Moderator: alexandrleonenko

Posts: 3
Joined: Jul 7th, '14, 04:16

Add Mode Percentage Field

Postby johnm » Sep 11th, '14, 00:15


I've set a field in my MySQL table to Dec(4,2). However, in Datagrid I want it shown as a % when the user enters the number eg 10.00%. Of course when I click on create, in my table it'll be shown as 00.1000. How would I get % data entry format in Datagrid?

Site Admin
Site Admin
Posts: 6020
Joined: Jan 7th, '09, 23:18

Re: Add Mode Percentage Field

Postby administrator » Sep 11th, '14, 03:28

You have a special type "percent" for add/edit mode fields, look in code_template.php or in getting started.

Return to “Add/Edit/View Mode Templates Implementing”