feature request

User 2654808 Photo


Registered User
8 posts

I was hoping to use S-Drive forms but it needs a feature update. In the forms I need to be hosted I added datepicker javascript to make the forms more usable (eg one cannot pick neither a past date nor a date beyond 1 year from today). It would be great if S-Drive supported forms that have been made using the web form builder but also supplemented by a script.

I guess I'm also requesting that the web form builder support some simple datepicker functionality like noted above. Love the form builder but it needs a boost.
User 187934 Photo


Senior Advisor
20,239 posts

Hi Dave,
I have several forms with custom datepickers on S-Drive. What are you actual in need of?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2654808 Photo


Registered User
8 posts

Hmm. I made an inquiry because I need some forms hosted and was told "Forms on S-Drive do not support custom scripting. So if you added that javascript, you'll need to use a third party hosting provider."

I have forms that work and were made with Web Form Builder. Thanks to a post from you in the past I set up a form for a library outreach program: http://mcdl.info/educator/educator2018/ It works fine but it needs to be hosted.

So S-Drive does support custom scripting?
User 187934 Photo


Senior Advisor
20,239 posts

You can use JQuery
Here's just one of my forms that I disable Friday and Sat.
http://progrower.coffeecup.com/forms/disable-fri-sat/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2654808 Photo


Registered User
8 posts

Does pasting that into an element on a given form remove the need to edit the resultant HTML file?
User 2654808 Photo


Registered User
8 posts

Below is the code that I add to the form.
<script>
$( function() {
$( "#date1,#date2,#date3,#date4,#date5,#date6,#date68,#date_assigned,#date_due,#date_needed" ).datepicker({
dateFormat: "mm/dd/yy",
minDate: 0,
maxDate: 365,
});
});
</script>
User 187934 Photo


Senior Advisor
20,239 posts

Is that a question or a statement?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2654808 Photo


Registered User
8 posts

Question: Does pasting that into an element on a given form remove the need to edit the resultant HTML file? I added the script since I should have in the first post. If there's no editing necessary after creating the form, then I'll see if I can piece together the necessary changes using your example. Thanks.
User 187934 Photo


Senior Advisor
20,239 posts

You can use an html element as I did on S-Drive to customize the datepicker. The best thing to do is try it and see if it works. If it works locally within the Form Builder preview it should work on S-Drive.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2654808 Photo


Registered User
8 posts

Thanks. I'll give that a try. I'm not familiar with the way you have coded it, but I'll work on going backwards from my working javascript code. Thanks again. BTW saw your web site example and am jealous of being so close to Bell's.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.