No matter what I try, the intended result doesn’t appear. Seeing the above widget arguments, I suspect that I can’t do a time-based comparison on a “date” field.
I made a quick profile type and widget to test this, and this appears to be the case.
Ah, an alternative idea that would be more useful for my current need.
Is there a way to define the {expiration_date} and {expiration_time} (and “Expires on…”) of a profile when it is made using $_LW->create()? If so, what is the expected format?
In brief, I have an accomplishment submission form that, on success, creates a profile. Given we want these profiles to hide themselves 15 months after they’re first relevant (that date field), I could determine the expiration date in the custom module ( date + 15 months ) then potentially assign that value to the profile.
Would be somewhat better than just limiting the time range of the widget, given it would help keep the dashboard list of profiles clean also.
Thanks Nick – noted on the desire to + usefulness of being able to do date comparisons on custom datetime fields.
I wonder if some onWidgetFormat - LiveWhale Support might offer a band-aid solution in the meantime, if you could do some processing on your custom_421 to check it against a PHP logic of current date/time and then either add some class=“hidden” or such to the onWidgetFormat buffer variables that gets passed through to the results? Hope this may help!