Page 1 of 1

Formatting multiple other info

Posted: Mon Feb 28, 2005 4:57 pm
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

Posted: Mon Feb 28, 2005 6:06 pm
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

Thanks

Posted: Tue Mar 01, 2005 5:02 pm
by ProSite
Thanks worked perfectly.

Posted: Tue Mar 01, 2005 6:37 pm
by norman
Glad that helped.