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.

Drop down calendar to select date on new record?

Featured Replies

I'm using the PHP site assistant to create the framework for my "create a new record" page, and I'd like to have a drop-down calendar for selecting a "need by" date for the new record. I know there are javascript solutions for normal HTML forms, but I'm having problems integrating them with our PHP forms.

Can anyone point me in the right direction here?

Thanks!

but I'm having problems integrating them with our PHP forms.

Exactly what kind of problems? Error codes (PHP and/or Javascript. In Firefox use Tools->Error Console to view JS errors. IE is almost useless for debugging JS) and sample code would be helpful.

Also: I'm curious to hear what others have to say but I absolutely loathe the code that the site assistant generates. I've found it to be a real PIA to deal with and not very extensible. If you don't want to use the canned solution, my view is that the time spent building your own solution from the ground up will pale in comparison to the time spent troubleshooting unintended consequences from attempting to augment the garbage that the site assistant spits out.

edited to add:

The only difference between a HTML form generated by php and a 'normal HTML form' is that the php form is manipulated by the server before being sent to the client (i.e. your browser). As far as your browser is concerned there is no difference. Use View->Page Source to look at the HTML your php page sends to the browser.

Edited by Guest

  • Author

Sorry, I should have been much more specific. The script I was trying to use would allow me to drop down the calendar, but the field remained blank when I clicked on a date.

I've done some more thinking and the PHP API just won't work for what I need to do. I have found a way to do it easily with IWP. Just a classic case of staring too long at something and not seeing the obvious.

:doah:

Thanks for taking the time, though!

No problem.

For future reference, I kind of figured that was the problem, but there are several possible causes for the value not showing up in the input. A quick look at the code and all error messages is the easiest way to ascertain what's going on.

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.