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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:06:29+00:00 2026-05-31T09:06:29+00:00

I was wondering is there any possible way that I can have a webview

  • 0

I was wondering is there any possible way that I can have a webview that automatically inputs the values for text boxes on a website and submit so that the user can just bypass the search (in particular search forms) entirely? So the user is only shown the result?

An example is : http://www.eatwellguide.org/mobile/
I noticed looking at the source it is using javascript.

Is there anyway I can automatically fill those in and press submit without the user even seeing this page. So, the webpage loads up to the results page?

Thanks in advance!

In response to the answer:

Is there any specific place I have to put this code? I put it after I did a load request to the webView for the site I listed above and then after the [super viewDidLoad], I put in the code you listed with values for first value and second value, with nameofOneInput being ‘SearchKeyword’, ‘SearchSubmit’ being the 2nd, and then the form id as ‘frmsAS’? It’s still not working. What am I doing wrong? I actually tried it to execute when the a button is pressed, still did not work

  • 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-05-31T09:06:30+00:00Added an answer on May 31, 2026 at 9:06 am

    Yes, you can use the following javascript to fill out the form then submit it.

    //Set the values
    NSString* firstValue = @"first value here";
    NSString* secondValue = @"second value here";
    // write javascript code in a string
    NSString* javaScriptString = @"document.getElementById('nameOfOneInput').value=%@;"
    "document.getElementById('nameOfAnotherInput').value=%@;"
    "document.forms['nameOfForm'].submit();";
    
    // insert string values into javascript
    javaScriptString = [NSString stringWithFormat: javascriptString, firstValue, secondValue];
    
    // run javascript in webview:
    [webView stringByEvaluatingJavaScriptFromString: javaScriptString];
    

    You obviously have to set firstValue and secondValue first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if there is any possible way to enter text inside a
I was wondering if there was any possible way to get the number (count)
Just wondering is there any way I can check whether the url links to
I am wondering is there any way we can test the font size/color of
Wondering if there is any way to get the lambda expressions that result from
I'm wondering, is there a way that you can do a search for all
I'm wondering if is there any way to mimic the same behaviour we have
Is there any possible way to develop and implement an app that will only
I was wondering if there is any possible way to call functions in a
i just wondering is there any performance issue or anything thing wrong if that

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.