Hi, it would be good to have a button next to a date/datetime field that inserts the current date into the field (via JavaScript). Example: in our Wiki we have a "Task end date", which should only be filled in after the task ended (so default value that's set from the beginning is not a solution). Most of the time people will fill in that information on the same day that the task actually ends, and then it would be very convenient to just click a button.
Maybe it's not a feature that needs to be in Semantic Forms (although I could imagine a new parameter that causes a button to be placed next to the date / datetime input fields). Can anyone think of another way I could get a button into that form? I figured out that the HTML/JavaScript would have to look like this: <input type="button" value="Fill in current date" name="fill_in_enddate" onClick="mydate=new Date(); document.createbox.input_12_day.value=mydate.getDate()"> - but how could I put this into the form, without making my own new extension, which I currently consider overkill? Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Semantic Forms" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/semantic-forms?hl=en -~----------~----~----~----~------~----~------~--~---
