PerfectForms Forums » Laying out a Form

IP address from browser

(16 posts)

Tags:

  1. simond
    Member

    Hi,

    Has anyone figured this out?

    Posted 2 years ago #
  2. ijobling
    Member

    sorry, figured what out ?

    Posted 2 years ago #
  3. simond
    Member

    How to get your IP address from the browser into a field?

    Posted 2 years ago #
  4. ijobling
    Member

    there isn't a function specifically in perfectforms, but there is now the ability for you to call javascript in a form. That will be able to do this for you
    see here
    http://www.perfectforms.com/Documentation/manual/html/fg_calling_javascript_from_a_form.htm

    Posted 2 years ago #
  5. simond
    Member

    If we're using a hosted solution is this available? As in can I use the utils.js file?

    Posted 2 years ago #
  6. ijobling
    Member

    Doesn't matter if it is 'hosted' as long as you have access to your own webserver. You do NOT use the util.js. You embed your form to your own website page and on that page add in your java script

    Posted 2 years ago #
  7. simond
    Member

    Id the form code from the Call JavaScript Example available?

    Posted 1 year ago #
  8. ijobling
    Member

    click the 'html example' button on the example form in the user guide and you will see the code used

    Posted 1 year ago #
  9. simond
    Member

    Sorry, I mean the form design.

    Posted 1 year ago #
  10. ijobling
    Member

    sorry its not, but all there is to it is under the butttons is the Call Javascript action realating to the name of the javascript function defined in the code that would be embedded on your webpage.
    see here for the other parameters available http://www.perfectforms.com/Documentation/manual/html/fg_call_javascript_properties.htm

    Posted 1 year ago #
  11. simond
    Member

    Yeah,I've read this. I would like to have seen the form design so I can see the behavior and associated fields in use.

    Posted 1 year ago #
  12. simond
    Member

    I only ask as you show a mechanic how to strip an engine down, you don't just give him a haynes manual and go there you are you're a mechanic!

    Posted 1 year ago #
  13. ijobling
    Member

    Sorry, but the form is not available to download at the current time.
    what is it though that you are struggling with? based on your initial 'how to return IP address, look at the second 'example' where the javascript function is:
    function myFunction()
    //This function will return the string "Hello World!" back to the form
    {
    return ("Hello world!");

    and then in your CallJavascript you enter in the name of the function (myFunction) and set the return target to the field you want "Hello world!" returned to

    Posted 1 year ago #
  14. simond
    Member

    is it possible to use VBscript instead of javascript?

    Posted 1 year ago #
  15. ijobling
    Member

    No. Call Javascript will just support javascript

    Posted 1 year ago #
  16. ajobling
    Member

    The example form is now available to download from here.

    http://www.perfectforms.com/Documentation/manual/html/?fg_calling_javascript_from_a_form.htm

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture