Forum Discussion

PerBonomi's avatar
10 years ago

Custom form to submit message

Hi there. I'm hoping someone's done this already and won't mind sharing some insights, before I possibly start reinventing the proverbial wheel.

 

I'm looking to get rid of Google forms and use Lithium's native API to let users submit basic form inputs.

 

My goal is to have a custom page where users answers some simple questions and upon submit, use the API to post a new forum message to a specific board. The user submitting the message wouldn't necessarily have access to this board, so I suppose restadmin would have to be used.

 

Thanks.

    • Thanks Doug, but I'm not sure what to with that. Seems like an aweful lot of external code for a native Lithium form submission.

       

      Thanks anyway :)

      • PerBonomi's avatar
        PerBonomi
        Boss

        I feel like I want to create an endpoint that can "read" the data from a form submission, but I don't know how to do that.

        If there were a simple example how to read a simple text input field's data on an endpoint, then I could work from there.