Jotform URL from Array

  • Profile Image
    Moveria
    Asked on August 22, 2012 at 02:42 PM

    I would like to create a Jotform URL directly from the Array but the the field name gives me problems because they are default lower case but the URL needs to be case sensitive, e.g. compare the 'fieldexample' and 'fieldExample':

    ARRAY: Array ( [submission_id] => 1234567890 [formID] => 22345271055952 [ip] => 123.456.789.0 [fieldexample=> 2011-01-01......

    This URL will work: http://www.jotformpro.com/form/22345271055952?fieldExample=2011-01-01......

    This URL will NOT work: http://www.jotformpro.com/form/22345271055952?fieldexample=2011-01-01......

    Do you have any suggestions?

    Thanks for great forms!

    Jari

  • Profile Image
    Mike_T
    Answered on August 22, 2012 at 05:09 PM

    Thank you for contacting us.

    Could you please explain your main goal?

    Then, we would be happy to check if that is possible with us.

  • Profile Image
    Mike_T
    Answered on August 22, 2012 at 05:12 PM

    If you would like to prepopulate fields in one form with text inputs from another form, please take a look at this thread.

  • Profile Image
    Moveria
    Answered on August 23, 2012 at 03:05 AM

    Hello Mike! The idea is to create a prepopulation URL based on a generic 'Thank You Page Redirect URL' and store it as a single string in a database. I have about 30 small forms that needs to be tailored separatley and that would require 30 different Thank You Page Redirect URL's. If I could use just one file (e.g. feedback.php) for that it would be great.

    To do so I need the field tag (in the Array) and the field to prepopulate to be identical (case sensitive) hence the format of the field tag created by Jotform is out of control for the user (depending of the text in the label).

    E.g. I named a checkbox label 'Field example' and the field tag in the form becomes 'fieldExample' but in the feedback array it apperas as 'fieldexample' (lower case) but the field in the prepopulate URL needs to be 'fieldExample' like the original field tag.

    I hope you understand my issue here!

    Jari

  • Profile Image
    Moveria
    Answered on August 23, 2012 at 03:26 AM

    Hi again! When I cloned the checkbox with label 'Field example' the field tag in the cloned checkbox became 'fieldExample4', the tag name cannot be predicted in any way.....

    Thanks!

    Jari

  • Profile Image
    fxr
    Answered on August 23, 2012 at 07:11 AM

    Hi Jari, 

    When you clone an element, numbers do get appended to the id of the element. Its not that random, the process of naming elements on a users form has to be automated in some way. 

    -

    To answer your first question, can you not just plan for the difference in the case of the first character of a 2nd word programmatically in your php somehow? 

    -

    It seems the most straightforward way of doing what you want is to not clone elements and keep them to one word labels.

  • Profile Image
    Moveria
    Answered on August 23, 2012 at 07:42 AM

    Hi! I understand what you say!

    One word labels wont do, I need the flexibility with any possible character allowed by Jotform! Besides that the idea is that another person should be able to tailor the form (since that is so simple) without any PHP knowledge.

    May I ask why the most field tags are converted to lower case in the Array? E.g. the [formID] is not!? Why aren't they exactly the same?

    Thanks for great support!


  • Profile Image
    jeanettebmz
    Answered on August 23, 2012 at 02:48 PM

    I am not part of the development team , but I think this is how the objects are structured to be rendered into the Array. That is why you see most of them in lowercase  , while some of them keep the same case


  • Profile Image
    Moveria
    Answered on August 23, 2012 at 04:37 PM

    I just don't see the benefit for any part doing this......

  • Profile Image
    NeilVicente
    Answered on August 23, 2012 at 05:41 PM

    @Moveria

    Fxr's suggestion of adapting your PHP script to capitalize the 2nd word would be the most sensible solution to your issue.

    Anyway, I have notified our developers regarding your latest question. You will receive updates via this thread so please stay tuned.

  • Profile Image
    Moveria
    Answered on August 24, 2012 at 01:01 AM

    OK, thanks I'll try that suggestion and stay tuned sa well!

    Once again, thanks for great support!

  • Profile Image
    PetriKinnunen
    Answered on September 19, 2012 at 04:01 PM

    Hello NeilVicente! No progress on this by the developers I guess?

  • Profile Image
    NeilVicente
    Answered on September 19, 2012 at 04:11 PM

    @PetriKinnunen

    No, we don't have updates yet. I guess this has taken a backseat as our development team are working on more important tasks - i.e., bug fixes and features that would benefit the majority of JotForm's clientele.

    I don't want to keep your hopes up, so please refer to fxr's suggestion of either "using one-word labels", or "planning for the difference in the case of the first character of a 2nd word programmatically in your php codes".