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 8779353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:45:58+00:00 2026-06-13T19:45:58+00:00

I have a html form which when it loads is already populated with data.

  • 0

I have a html form which when it loads is already populated with data. It has Save and Apply buttons on.

I want to change 1 item on the form and POST it from my iOS app. The problem is that when I send the POST with my changed Form Data info for the item i’m changing, I also need to submit all the other current settings from the form or they get overwritten with blanks. (I have no control over editing the page).
I could parse the page beforehand to grab the displayed data from the form then send it with the POST, however the page can appear different for each user so this will be very difficult.

In a web browser when I hit the Save button after loading the page, I can see all the POST headers and form data, so I’m thinking I can do this in my app to grab the current data then amend the 1 item I wish to change, then rePOST it.

So my question is, if I read a page with AFNetworking, can I then simulate pressing the Save button on that page, so I can then read the response but this time with the POST and header data?

Or any alternative thought on how to achieve this?

  • 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-13T19:45:59+00:00Added an answer on June 13, 2026 at 7:45 pm

    This might work by accessing the Document Object Model… check the syntax…

    NSString *formValue = [webView stringByEvaluatingJavaScriptFromString
                            :@"document.forms[0].elements[0].value"];
    
    //...change value...
    
    NSString *jScript = [NSString stringWithFormat
                         :@"document.forms[0].elements[0].value='%@';", formValue ];
    
    [webView stringByEvaluatingJavaScriptFromString: jScript ];
    
    [webView stringByEvaluatingJavaScriptFromString: @"document.forms[0].submit();"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this html form which has options: <tr> <td width=30 height=35><font size=3>*List:</td> <td
I have a HTML form that has certain fields which i am opening inside
I have this page which loads quotes. It has a search form wherein if
I have an HTML form which, when submitted by the user, will call a
I have an html form which when it gets submitted it calls a JavaScript
I have a html form which have a select list box from which you
I have a HTML form which allows a user to add rows ad hoc
I have a simple html login form which is validated with javascript before its
I have an HTML Contact us form which I plant on my client's HTML
I have a HTML form that accepts a comma separated list of tags, which

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.