This topic is locked
[SOLVED]

 Customizing labels

7/4/2016 10:39:20 PM
PHPRunner General questions
K
KelvinChua author

Hi Gurus,
Is there any way to customize the field labels for the List Box and the Add/Edit/View Form separately? I have 2 fields, Tel No and Fax No. Because I would like to combine the 2 fields within the list column, but add and edit them separately within the Add/Edit Form. Originally, the label for telephone field is 'Tel No.' and the label for facsimile field is 'Fax No.'. I edited the 'Tel No.' to read as 'Tel/Fax No.' for the list box, to better represent the contents within the list box column. But, in doing so, the label at the Add/Edit Form changed from 'Tel No.' to 'Tel/Fax No.'. It become very awkward because there is another 'Fax No.' label.
I can workaround by deleting the default Add/Edit label for telephone field, and add a new text label. Is it possible to edit and provide labels for list box and Add/Edit form separately?
https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23970&image=1&table=forumtopics
Thanks.
Kelvin Chua

SINGAPORE

Sergey Kornilov admin 7/5/2016

While PHPRunner doesn't have a built-in option to use different label types on different pages this article shows how you can override field labels from your code:

http://xlinesoft.com/blog/2015/12/04/storing-field-labels-and-visibility-rules-in-the-database/

K
KelvinChua author 7/5/2016

Hi Sergey Kornilov,
Thanks, that will be good enough as a solution.
Kelvin Chua

SINGAPORE