Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

keypress buffer modify via javascript in valuelists

Featured Replies

Hi, i'm trying to modify the keypress buffer using javascript of an xsl generated value list from filemaker. I have the script in the head, but I can't figure out how to trigger it in the select statement. I've included my code below.


requestor()

Select One

requestor

Select One

I think i just have the script being called in the wrong place. Getting source on the final generated page doesn't even have mention of the function call. Any help would be greatly appreciated. Thanks!

Not clear to me what you want do exactly. But here is a hint:


requestor()

Select One



Edit: Strange, exactly the code I wanted to show was not displayed. I hope it works now

Edited by Guest

  • Author

Sorry, I need to integrate this into the code above:

onkeypress="return keySort(this);"

Edited by Guest

  • Author

Yeah, same thing happened to me the first time and I just thought I was crazy. On the second post I figured out to turn off markup.

Ok, so I put it where you suggested, but it seems as if it still doesn't work. i know the script works, as I put in a non xsl based popup and it works fine. There as to be a way to do this...

Anyone?

In your example, "this" will return the actual object, which will be the select object, not the option that you have selected.

In one of our solutions, I use

onChange="myfunctions(document.name_of_the_form.name_of_the_select_object.options[this.selectedIndex].index)"

However, that depends on what your keySort function really does.

  • Author

Well, the script essentially allows you to freetype into the dropdown list, so when you type j-a-m-e-s you get "james" rather than the begining of the 's'. So basically, you're saying i need to modify this text: "onkeypress="return keySort(this);"

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.