|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Journeyman |
I'm modifying Andy Warwick's great FTP Login HUD but I've run into a problem that I'm hoping has a simple solution.
My custom form has a number of date fields. When the form data is displayed in the HUD, the dates are long style, for lack of a better phrase. I wanted short dates. So I appended the .shortDate thing to the date field like so: <li><strong>Date filed:</strong> <$formdata.datefile.shortDate$></li> I then get a date like "3/13/07" which is what I want. The problem is that when the date field is empty on the custom form, the HUD locks ups and Daylite crashes. I'm wondering if there's a different way to change the code so that the shortDate works without having to use .shortDate for each date field. Seems like this could be set some other place but I don't know how. Hope that's clear and that someone can help1 |
||
|
|
Marketcircle Team |
Atticus,
Appending .shortDate is the right thing to do here. It's a bit strange that it's locking up when there's no value, but you could try this to avoid that: <li><strong>Date filed:</strong> <$if formdata.datefile$><$formdata.datefile.shortDate$><$endif$></li> This way it won't bother trying to put that value in if there is no value to swap in. |
|||
|
|
Journeyman |
Thanks, Ali. That seems to work. There must be a better way than putting if/endifs around each data field, but that will have to work for now.
|
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

