Drop Down entries read from text file

  • Career_at_BOR
    Asked on March 7, 2016 at 4:12 PM

    Hi

    I have designed a Jotform for recruiting candidates in my company. Time to time, there are different kinds of vacancies available in my office. I have a Drop Down list in my Recruitment Form which lists all the available vacancies at a given time. The candidates can select the job they are applying when filling the form.

    Every time I have new or different vacancies, I manually edit the items in the Drop Down list so that candidates can apply to available jobs. I want to automate this process in this way :

    I store a text file in my computer where I just enter the name of vacancies currently available. There should be an app/widget that reads the currently available vacancies from text file and populate the items of my Drop Down list. This way, I don't have to edit my Jotform Drop Down list. All what I have to do is to update a simple text file.

    I think this could also be done by editing the Source Code of my Jotform. However, I have no experience of Javascript/CSS/HTML and therefore, cannot do it there.

     

    Could you suggest me an app/widget that can help me with this. Or any different suggestion to get it done.

    Hope to get your reply soon.

    Have a good day.

    Umair

  • Chriistian Jotform Support
    Replied on March 7, 2016 at 8:48 PM

    Unfortunately, we do not have a app or widget that allows you to read the currently available vacancies from text file and populate the items to your Drop Down list. You'll need to manually add the list of items in your form.

    We do have some drop down widgets that you can check. You can find them on this page: http://widgets.jotform.com/. Here's a "User Contributed Drop down" widget that allows your users to add an option in the drop down field.

    Another possible way is to use the form's full source code, create a custom script that will pre-populate your options list from a text file source. However, you'll need to embed the form's source code on a web page/server and you'll need to develop or hire a developer that will create the custom script. 

    Here's a guide on how to get the full source code of your form: How to get the Full Source Code of your Form

    And here are some discussions about it: http://stackoverflow.com/questions/14857054/populating-drop-down-menu-from-comma-delimited-text-file?answertab=active#tab-top.

    https://www.sitepoint.com/community/t/populate-a-dropdown-with-text-file-and-dynamically-update-the-second-drop-down/77103/5

    You can try loading the text file using JSON.

    Hope that helps.
    Regards.