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.

5 Replies

  • 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
    10 years ago

    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.

  • irach15's avatar
    irach15
    Maven
    9 years ago

    Hi PerBonomi,

    did you find How to?

    Can I use you idea? :-)

    I'm trying to do pretty much the same...

    Any code snippets mucho appreciated.

    ..........................................................

    I also need to create a custom form, validate it and send response out of Lithium platform.

    Anyone?