Announcement

Collapse
No announcement yet.

How can I change the size of the 'Other Info' text box?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I change the size of the 'Other Info' text box?

    There are two places where the 'Other Info' text box size is defined.

    The first change is in Design | Text. Use the 'Go to' button to select Phase -1, ID 2161. The default text is…

    %s<INPUT TYPE=text NAME="%s" SIZE="%d" MAXLENGTH="%d">

    Replace 'SIZE="%d" with "SIZE="20" to make the size of the box 20 characters.

    Replace MAXLENGTH="%d" with MAXLENGTH="1000" to make the maximum number of characters that can be entered in the box 1000. IMPORTANT, this field must not be left as %d or it will take the standard box size as the maximum number of characters. Also do not set the value greater than 1000 or you will have problems when the order is downloaded and the data is too large for the database.

    The second change is in a script file.

    - Locate the file ActinicOrder.pm in the site folder.
    - Edit the file using a text editor such as Notepad.
    - Search for 'sub InfoHTMLGenerate'. About 25 lines after this you should see…

    $sHTML = "<INPUT TYPE=TEXT SIZE=\"35\"" NAME=\""O_$nIndex\"" VALUE=\""$sValue\"" $sStyle>"";

    - Replace 35 with the required size in characters.
    - Save and Exit.
    - Update the site.

    SellerDeck is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation directory. Copy this into your site folder.
Working...
X