This topic is locked

Date Dropdown as number not month text

7/18/2017 9:55:39 AM
PHPRunner General questions
J
jwehner author

I would like to change the date picker month drop down to be numerical (1-12) instead of the month names.
Is this possible?

admin 7/18/2017

We do not really have this kind of functionality. You can modify source files manually to achieve this.
Open C:\Program Files (x86)\PHPRunner9.8\source\include\common\runnerJS\editControls\DateFieldControl.js file in text editor and find the following snippet:

monthNames: [

Runner.lang.constants.TEXT_MONTH_JAN,

Runner.lang.constants.TEXT_MONTH_FEB,

Runner.lang.constants.TEXT_MONTH_MAR,

Runner.lang.constants.TEXT_MONTH_APR,

Runner.lang.constants.TEXT_MONTH_MAY,

Runner.lang.constants.TEXT_MONTH_JUN,

Runner.lang.constants.TEXT_MONTH_JUL,

Runner.lang.constants.TEXT_MONTH_AUG,

Runner.lang.constants.TEXT_MONTH_SEP,

Runner.lang.constants.TEXT_MONTH_OCT,

Runner.lang.constants.TEXT_MONTH_NOV,

Runner.lang.constants.TEXT_MONTH_DEC

],


Modify it this way:

monthNames: [

"1",

"2",

"3",

"4",

"5",

"6",

"7",

"8",

"9",

"10",

"11",

"12"

],
J
jwehner author 7/19/2017

Thank you that works. But that changes it for all my sites <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82691&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />
I'm good with it for now. Thanks for the fast reply!