Tried:

(formlet
 ; Rendering
 (#%# ,{(to-string (required (hidden "<30 25 11>"))) . => . state}

      ,{time-formlet . => . hms})
 ; Processing
 (list state hms))))

and it worked, thanks Jay.

On 9/21/15, Jay McCarthy <jay.mccar...@gmail.com> wrote:
> The return type of hidden is
>
> (formlet/c (or/c false/c binding?))
>
> So you are getting a binding out. You probably want (to-string
> (required (hidden ....)))
>
> Jay
>
> On Mon, Sep 21, 2015 at 2:19 PM, Richard Adler
> <adler.rich...@googlemail.com> wrote:
>>
>> Hello
>>
>> Could somebody provide an example of how to use a hidden formlet?
>>
>> I tried the following:
>>
>> (formlet
>>  ; Rendering
>>  (#%# ,{(hidden "<30 25 11>") . => . state}
>>       ,{time-formlet . => . hms})
>>  ; Processing
>>  (list state hms))))
>>
>> I thought I would get
>> (list "<30 25 11>"
>>       (list hours mins secs))
>>
>> when processing the form but I kept
>> getting a "(binding:form #"input_0" #"<30 25 11>") instead of a string.
>>
>>
>> Thanks for any help.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Jay McCarthy
> http://jeapostrophe.github.io
>
>            "Wherefore, be not weary in well-doing,
>       for ye are laying the foundation of a great work.
> And out of small things proceedeth that which is great."
>                           - D&C 64:33
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to