Formatting multiple other info

Collect several lines of customer entered data with a product.
Post Reply
prosite

Formatting multiple other info

Post by prosite »

Hi,

I am trying to narrow the input size when I only have one option, I have tried 10Please.. from the example below,

http://lead.prosite.co.uk/acatalog/Select_Plate_1.html

However all I get is the format of the second product, I have also tried finishing the statement with a | but then it just adds on the next box.

Can the default size be over ridden?

Thanks

Jez
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

If you have only a single prompt then the patch tries to do things the standard Actinic way (for compatibility reasons) so any fancy formatting is lost.

However you can alter the default size globally for single prompts. Edit actiniccore.js and look for the line

Code: Select all

  document.write(pre + '<INPUT TYPE=text NAME="O_' + prodref + '" ' + prodvalue + ' SIZE="' + size + '" MAXLENGTH="' + max
replace the fragment size with the width of the cell you'd like. E.g.

Code: Select all

  document.write(pre + '<INPUT TYPE=text NAME="O_' + prodref + '" ' + prodvalue + ' SIZE="' + 10 + '" MAXLENGTH="' + max
Norman
ProSite

Thanks

Post by ProSite »

Thanks worked perfectly.
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

Glad that helped.
Norman
Post Reply