• Resolved sajtfokus

    (@sajtfokus)


    Hi,

    I’m trying to get the form results from another website, by using URL parameters or API calls.

    The goal is to get the form result and populate it in the external website. The trigger would be a press of a button on the external website (which could send a http requests with URL parameters added, or trigger an API call, etc)

    Is this doable? How can the form get submitted without actually going to the form and filling out the fields? I guess if I pass this step, I could use webhooks to retrieve the results in another place.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @sajtfokus

    I’m sorry, but I don’t understand what you mean by “How can the form get submitted without actually going to the form and filling out the fields?” to submit a form you must access the form, or at least the page that contains the form. If you have a form created with our plugin on the page, you can submit it by coding with a piece of code similar to:

    fbuilderjQuery('form.cff-form').submit();

    Best regards.

    Thread Starter sajtfokus

    (@sajtfokus)

    Let me provide some more info.

    Let’s say that I have a form that takes two input fields, performs a calculation, and provides a result as output.

    I want to connect an app to this form so that the app can:

    1. Automatically populate the form fields by sending an HTTP request with parameters.
    2. Retrieve the calculated result from the form through an API or HTTP response.

    How can I set up this integration to enable my app to interact with the form and get the result programmatically whenever needed?

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @sajtfokus

    You can use the getURLParameter operation in the “URL Operations” module to populate the form fields with URL parameters. (https://cff.dwbooster.com/documentation#url-module)

    For example, assuming you have the form fields fieldname1 and fieldname2 and want to prefill them with the values of the URL parameters param1, and param2.

    Insert an “HTML Content” field in the form and enter the following piece of code as its content:

    <script>
    fbuilderjQuery(document).on('formReady', function(){
    getField('fieldname1').setVal(getURLParameter('param1', ''));
    getField('fieldname2').setVal(getURLParameter('param2', ''));
    });
    </script>

    Populate your App with the equations results will depend on your App requirements.

    If you need help communicating the plugin fields with your App, you can contact us directly through the plugin website: Contact Us

    Best regards.

    Thread Starter sajtfokus

    (@sajtfokus)

    Thank you for your response. I believe someone would still need to visit the page with the parameters in order for form to be submitted. Is there a fully-automated way, like through API of some sort?

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @sajtfokus

    A form is an HTML tag, the HTML tags are rendered in browsers. To submit a form, you must access the page that contains the form even if you submits the form by code.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.