Jump to content




Drop-down Value List Cursor Behavior


  • Please log in to reply
6 replies to this topic

#1 OFFLINE   steigrafx  enthusiast

steigrafx
  • Members
  • 103 posts
  • FM Client:11 Advance
  • Platform:Windows XP
  • Skill Level:Novice
  • Time Online: 20h 1m 24s

Posted 05 February 2012 - 12:03 PM

I have a field with a drop-down value list.  As soon as an item is selected from the list, the cursor moves to the next field.  I need the cursor to remain in the field.

For example, a value might be "Proceeding for the Appointment of a Guardian for ".  I need the user to be able to select the value from the drop-down and then complete the sentence by typing a name.

Is there a way to accomplish this?

Thanks,
Kevin

#2 ONLINE   Ocean West  I have an idea!

Ocean West
  • Administrators
  • 2,131 posts
  • LocationSan Diego
  • FM Client:12 Advance
  • FMGo:iPhone / iPod Touch, iPad
  • Platform:Mac OS X Lion
  • Skill Level:Expert
  • Certification:7, 8, 9, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 16d 20h 57m 24s

Posted 05 February 2012 - 12:37 PM

Here is away to do so with a script trigger.

Attached File  valueList.fp7.zip   6.47K   12 downloads
Stephen Dolenski
FM Forums.com Founder, Administrator

#3 OFFLINE   steigrafx  enthusiast

steigrafx
  • Members
  • 103 posts
  • FM Client:11 Advance
  • Platform:Windows XP
  • Skill Level:Novice
  • Time Online: 20h 1m 24s

Posted 05 February 2012 - 01:07 PM

Thank you very much, Ocean West.

I've copied your script and changed the field name and I've added [INSERT NAME]. into the entries in my value list, and I've set the script trigger but it doesn't work for me.  For some reason, the [INSERT NAME] does not get selected and the cursor moves to the next field.  I must be doing something wrong.  I'll compare your other settings to see if I've overlooked something -- I'm sure I did.

Thanks again.  I could never have come up with a solution like that.  Amazing.

Kevin

#4 ONLINE   Ocean West  I have an idea!

Ocean West
  • Administrators
  • 2,131 posts
  • LocationSan Diego
  • FM Client:12 Advance
  • FMGo:iPhone / iPod Touch, iPad
  • Platform:Mac OS X Lion
  • Skill Level:Expert
  • Certification:7, 8, 9, 10
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 16d 20h 57m 24s

Posted 05 February 2012 - 01:17 PM

make sure you add the script to the trigger on the valueList field : i used onObjectExit
Stephen Dolenski
FM Forums.com Founder, Administrator

#5 OFFLINE   steigrafx  enthusiast

steigrafx
  • Members
  • 103 posts
  • FM Client:11 Advance
  • Platform:Windows XP
  • Skill Level:Novice
  • Time Online: 20h 1m 24s

Posted 05 February 2012 - 01:35 PM

Thanks.  Yes, I did add the script to the trigger.  I'm certain I've overlooked something.  I'm going to double-check the script again.

Kevin

#6 OFFLINE   steigrafx  enthusiast

steigrafx
  • Members
  • 103 posts
  • FM Client:11 Advance
  • Platform:Windows XP
  • Skill Level:Novice
  • Time Online: 20h 1m 24s

Posted 05 February 2012 - 01:49 PM

Okay...stupid me.  I copied and pasted your script steps and then edited the field name.  But, I wasn't paying attention.  When I pasted the steps, the calcs came across as, for example:

"/*PatternCount ( Electronic Recording::Caption: ; \"[\" ) or PatternCount ( Electronic Recording::Caption: ; \"]\" )*/"

instead of

PatternCount ( Electronic Recording::Caption: ; "[" ) or PatternCount ( Electronic Recording::Caption: ; "]" )

Everything works perfectly now.

Thanks again,
Kevin

#7 OFFLINE   comment  consultant

comment
  • Members
  • 21,137 posts
  • Time Online: 187d 10h 40m 8s

Posted 05 February 2012 - 02:59 PM

Now that you have a technical answer, here's an ideological one: use one field per fact.

Attached Files

  • Attached File  Two.zip   5.45K   11 downloads



Back to Value Lists


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users

FMForum Advertisers