Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7799003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:10:03+00:00 2026-06-02T00:10:03+00:00

I have a form similiar to THIS and want to be submit data to

  • 0

I have a form similiar to THIS and want to be submit data to it from a CSV file using ruby. Here is what I have been trying to do:

require 'uri'
require 'net/http'

params = {
      'field15157482-first'   => 'bip',
      'field15157482-last'    => 'bop',
      'field15157485'         => 'bip@bob.com',
      'field15157487'         => 'option1'
      'fsSubmitButton1196962' => 'Submit'
}

x = Net::HTTP.post_form(URI.parse('http://www.formstack.com/forms/?1196833-GxMTxR20GK'), params)

I keep getting A valid form ID was not supplied. I have a hunch I am using the wrong URL but I don’t know what to replace it with.
I would use the the API but I don’t have access to the token hence my stone age approach. Any suggestions would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:10:05+00:00Added an answer on June 2, 2026 at 12:10 am

    The form uses hidden variables and cookies to attempt to maintain a “unique session”. Fortunately, Mechanize makes handling ‘sneaky’ forms quite easy.

    require "mechanize"
    form_uri = "http://www.formstack.com/forms/?1196962-617Z6Foyif"
    
    @agent = Mechanize.new
    page = @agent.get form_uri
    
    form = page.forms[0]
    
    form.fields_with(:class => /fsField/).each do |field|
      field.value = case field.name
                      when /first/ then "First Name"
                      when /last/ then "Last Name"
                      else "email@address.com" 
                    end
    end
    
    page = form.submit form.buttons.first
    
    puts
    puts "=== Response Header"
    puts
    puts page.header
    puts
    puts "=== Response Body"
    puts
    puts page.body
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file containing lots of data put in a form similar to
I have form in my page, I am using ajax.beginform(). Inside this form I
I have a submit button, created from - basically when this is clicked I
I have form with few buttons and I want to know what button is
I have form with multiple input type=radio with text next to them. I want
i have form with user data to input and javascript ajax to send information
I have form like this: <div class=satu> <input type='text' size='1' maxlength='1' name='score[1][]' id='score[1][]'> </div>
I have a form for a nested resource (Client :has_many Workouts) that I want
I have this form with inputs with the same name but similar (incremental) ids.
I have been looking for a decent jQuery validation methodology. I found this jsFiddle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.