setting Date-field to "Today"

Jokes 31 Jul, 2009
Hi There,

I searched the forum, but did not found anything.
How can I set a preselected Date in the Date-Picker.
I want to set the actual date as default and then the User can change it or not.
Please Help.
THX

[EDIT]face-meh-blankolution see last reply🙂
GreyHead 31 Jul, 2009
Hi Jokes,

Have you tried setting a value for the input?

Bob
Jokes 31 Jul, 2009
No, i dont know the variable to set the actual date. [EDIT]Furthermore I need a field (or dropdown) which displays the actual Weekday, and gives the option to change it.

Additionally i have saved some data in a table, but when i klick export to csv or export to excel, nothing happends? Is this feature not implemented jet? *Confused* When it works in time, will this option export the data in rows or in Lines? I need that export in Lines (each post=>one line)

next problem😟 my form only saves one record, all other input-tests are not received in the database. Whats wrong? [EDIT]: Now it works "i dont know why", is the upgrade sql button for flushing the unused tables? i clicked it but the tables from my tests forms are stil in the db? [EDIT]: i flushed them manually.

(My English isnt that good, please be clement😀


please help 😀
Jokes 01 Aug, 2009
have i done something wrong? broke any board rules ? nobody have an idea?
GreyHead 01 Aug, 2009
Hi Jokes,

It's just a busy day, a lot going on, Max isn't here at the moment and there isn't a one-minute answer to your questions.

To set the date use the PHP date() function to set a value='01/08/2009' in the date-picker input.

Clicking CSV or Excel should open a download window with a file to save. Generally it works well provided that your server allows the writing of the necessary temporary files. Please check your server log to see if anything is showing up there.

Yes, it outputs one record per line

The Upgrade SQL link is for Upgrading the SQL tables when you upgrade ChronoForms - it doesn't flush or change any data.

If the data isn't saving then there is probably some small bug in your form setup. Try setting Site Debug on and look carefully at the SQL report after you submit the form.

Bob
Jokes 01 Aug, 2009
Hey THX for Support, but iam a real newbie in this Komponent.

I want to set the actual date automatically, where is the date picker input, i dont know where to use the PHP date() function to set a value='01/08/2009' Like This? ==> doesnt work..
setting Date-field to "Today" image 1

The Problem with the csv and excel export have changed, my other PC had blocked popups from the csv/excel export😀. I have exported some records, but there are only the IP and postdate in it, and not the collected data??

The saving of data in the db works now. Little mistake from myself🙂

Greetz Jokes
GreyHead 01 Aug, 2009
Hi Jokes,

I'm afraid that you are going to need to learn a little coding if you want to do 'special' things with ChronoForms. It's a very versatile tool but that also measn that it can't do everything for everyone.

If your data isn't saving then my guess is that when you Created the Table you didn't select your form fields to be saved.

Bob
Jokes 01 Aug, 2009
I know the basics of html php sql e.g., that cant be such a big thing to display the actual date. I just dont know where the code is to edit the date picker.

I had a look at the table and the new fields were not activated, a had set all active (create colums) but the data isnt still saving in the db just the terms of the rows.[EDIT] now it works *confused* doesn't changed anything...[EDIT] How can i change the order of the rows... i need a export in the correct order.
Found an Solution from Max: works fine ==> http://www.chronoengine.com/forums.html?cont=posts&f=2&t=14113&p=31184&hilit=export+order#p31184



so there is just only the problem to set the actual date and weekday.. may you can give me an hint to complete this little project.
Jokes 02 Aug, 2009
found it🙂

<div class="form_element cf_datetimepicker">
<label class="cf_label" style="width: 150px;">Datum</label>
<input class="cf_datetime required" title="-erforderlich-" size="20"
id="Datum" name="Datum" type="text"
value='<?php echo date('d.m.Y'); ?>' />
This topic is locked and no more replies can be posted.