Autocapitalized yet editable combo list

9 views
Skip to first unread message

GGJ

unread,
Oct 3, 2008, 4:50:32 AM10/3/08
to CenoPDF Support Group
Hi,
I am no javascript expert. I simply copied the following script under
a combo box field Keystroke to achieve the auto capitalized function.
However, the field became only addable but not editable even though
Editable is checked. Is there a better script other than this one to
achieve both purposes?

if(!event.willCommit)
event.change = event.change.toUpperCase();

Thanks!
GGJ

Joe Lee

unread,
Oct 8, 2008, 8:38:01 PM10/8/08
to cenos...@googlegroups.com
Hi,
Is there on one can help or my question was just simply ignore??

Thank you very much!

CenoPDF Support

unread,
Oct 13, 2008, 2:49:20 AM10/13/08
to CenoPDF Support Group

Joe Lee

unread,
Oct 13, 2008, 3:03:48 AM10/13/08
to cenos...@googlegroups.com
Thanks Yang but it is exactly as mine which is addable not editable unless user immediately delete the highlighted one and type manually.

Yang Lu

unread,
Oct 13, 2008, 11:16:55 AM10/13/08
to cenos...@googlegroups.com

You are welcome Joe. Can you explain a bit more about the behavior that you want to achieve? I think if you can add, insert, copy, paste or delete the text box portion of the combo box, it should be considered as editable. Sorry for the confusion.

 

Yang


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.173 / Virus Database: 270.8.0/1722 - Release Date: 10/13/2008 7:50 AM

Joe Lee

unread,
Oct 13, 2008, 9:01:12 PM10/13/08
to cenos...@googlegroups.com
Hi Yang,
Sorry but both yours and my combo list cannot be deleted. What I need is once selected, user can press Backspace to edit for example the attached if user chose a1+b2, he can change it to a1+b3. And the more important requirement is user is able to add say c3 which is not in the list because the list keep increasing but form creator (me) may not be able to append the list for them every now and then. Even though I can just use normal text box for them to fill in but it would be best such combo list can be used.

Thanks,
Joe
JoeTest.pdf

Yang Lu

unread,
Oct 14, 2008, 3:32:31 AM10/14/08
to cenos...@googlegroups.com

Thanks for the reply.

 

I am able to reproduce the problem. It was caused by the script in the keystroke trigger. Please delete the script for keystroke and add the following script for the Format trigger:

 

event.value = event.target.valueAsString.toUpperCase();

 

Please see attachment.

 

Thanks,

JoeTest.pdf

Joe Lee

unread,
Oct 14, 2008, 4:31:26 AM10/14/08
to cenos...@googlegroups.com
Thank you so much Yang... Even though your attached was not able to be opened but my form works exactly as what I want after changing the scripts and made it to be triggered at Format! =)
Reply all
Reply to author
Forward
0 new messages