Widget creation: How can I add needed wiget settings (and then fill them via JotForm Builder) ?

  • Profile Image
    alyonashevchenko
    Asked on January 22, 2018 at 05:34 AM

    Good day, guy!

    I am newcommer in JotForm.
    Please, help me to understand some points:
    I want to create improved Substring wiget:

    - can I find code of this widget to modify or code of other widget to learn?
    - how can I add widget settings?

    Regards, Alyonka

  • Profile Image
    Richie_P
    Answered on January 22, 2018 at 10:01 AM

    You can check this article. https://widgets.jotform.com/widget/substring

    The substring widget uses the JavaScript String substring() Method. You can check the codes here.

    https://www.w3schools.com/jsref/jsref_substring.asp

    Then you can create your own widget by using this guide.

    http://developers.jotform.com/widgets

    And edit widgetSettings.

    Hope you find this information useful.

    Please let us know if you have further questions.

  • Profile Image
    alyonashevchenko
    Answered on January 22, 2018 at 06:09 PM

    Good evening!
    Thank you for feedback!

    I found example code of Substring Widget: http://widgets.jotform.io/substring/substring.min.js.
    But I see:
    - it's not iFrame Widget but without iFrame Widget!!!

    Can I also create not iFrame Widget with needed widget settings (I can setup them for iFrame Widget only) and more easy communicated with other jotForms elements (because cross-origin limit is blocker for me) ?

  • Profile Image
    Jan
    Answered on January 22, 2018 at 09:09 PM

    Glad to hear that you were able to locate an example code for Substring widget.

    If you want to download the form's source code and upload it to your server, please refer to this guide: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form.


    Can I also create not iFrame Widget with needed widget settings?

    This is a duplicate post. Please wait for the reply of my colleague on this thread: https://www.jotform.com/answers/1358224.


    Thank you.