• Love your plugin. I wanted to add a few fields to my form.

    Questions:

    – (most important) Any sample code to help with method / action? I get the fields in there, but the form doesn’t submit (of course). But action isn’t clear to then get that data into the DB.
    – (least important) I’d like to add state / city drop downs. Enter your state then city is populated based on your state selection. Any examples of this?

    I’m just not sure the boundaries of the custom form – I think HTML. Can’t drop JS in there, etc.

    Thanks much. Again, love the plugin! Delightful.

    Bec

Viewing 1 replies (of 1 total)
  • Plugin Author Icegram

    (@icegram)

    @owyheeadmin,

    Here are the sample custom form code look like

    
    <form method="post" action="/action_page.php">
      First name:<br>
      <input type="text" name="firstname" value="Mickey">
      <br>
      Last name:<br>
      <input type="text" name="lastname" value="Mouse">
      <br><br>
      <input type="submit" value="Submit">
    </form> 

    So method will be post and action will be “action_page.php”.
    You have to handle data to save in DB will be written in PHP.
    Regarding select box you have to write extra field in the form.
    And yes, you can not add js in Rainmaker custom form.

    Hope this helps you.

Viewing 1 replies (of 1 total)
  • The topic ‘Sample Code for Custom Forms?’ is closed to new replies.