PerfectForms Forums » Laying out a Form

IP address from browser

(16 posts)

Tags:

  1. simond
    Member

    Hi,

    Has anyone figured this out?

    Posted 1 month ago #
  2. ijobling
    Administrator

    sorry, figured what out ?

    Posted 1 month ago #
  3. simond
    Member

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

    Posted 1 month ago #
  4. ijobling
    Administrator

    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 1 month ago #
  5. simond
    Member

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

    Posted 1 month ago #
  6. ijobling
    Administrator

    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 1 month ago #
  7. simond
    Member

    Id the form code from the Call JavaScript Example available?

    Posted 2 days ago #
  8. ijobling
    Administrator

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

    Posted 2 days ago #
  9. simond
    Member

    Sorry, I mean the form design.

    Posted 2 days ago #
  10. ijobling
    Administrator

    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 2 days 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 2 days 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 2 days ago #
  13. ijobling
    Administrator

    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 2 days ago #
  14. simond
    Member

    is it possible to use VBscript instead of javascript?

    Posted 2 days ago #
  15. ijobling
    Administrator

    No. Call Javascript will just support javascript

    Posted 2 days ago #
  16. ajobling
    Administrator

    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 18 hours ago #

RSS feed for this topic

Reply

You must log in or register to post.