Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Drop down calendar to select date on new record?


This topic is 5784 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted (edited)

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
Posted

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!

Posted

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.

This topic is 5784 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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