Title: Submit CFF programmatically
Last modified: November 21, 2024

---

# Submit CFF programmatically

 *  Resolved [sajtfokus](https://wordpress.org/support/users/sajtfokus/)
 * (@sajtfokus)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/submit-cff-programmatically/)
 * 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](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/submit-cff-programmatically/#post-18152231)
 * Hello [@sajtfokus](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       fbuilderjQuery('form.cff-form').submit();
       ```
   
 * Best regards.
 *  Thread Starter [sajtfokus](https://wordpress.org/support/users/sajtfokus/)
 * (@sajtfokus)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/submit-cff-programmatically/#post-18155195)
 * 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](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/submit-cff-programmatically/#post-18155362)
 * Hello [@sajtfokus](https://wordpress.org/support/users/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](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:
 *     ```wp-block-code
       <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](https://cff.dwbooster.com/customization)
 * Best regards.
 *  Thread Starter [sajtfokus](https://wordpress.org/support/users/sajtfokus/)
 * (@sajtfokus)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/submit-cff-programmatically/#post-18155402)
 * 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](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/submit-cff-programmatically/#post-18155404)
 * Hello [@sajtfokus](https://wordpress.org/support/users/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)

The topic ‘Submit CFF programmatically’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/submit-cff-programmatically/#post-18155404)
 * Status: resolved