Community
Add webhook fields through an API
How to add the following fields in a webhook through an API? I was not able to find these fields in the resources.
1. EMAIL ON FAILURE.
2. Allow full credit card data to be sent through webhook
3. HMAC KEY
Thanks
Posted by NagaSampath 4 months ago
V4 forms - jumping down page
I tried searching for related posts, but not finding any I wanted to ask - with the v4 form update, is anyone else experiencing form-jump? FS is explaining it as an issue with our CMS, but the exact same form in v3 does not jump. I'm not getting any info as to what the conflict might be to even begin troubleshooting. Hoping to find some insight here. I appreciate anyone's time to share their experience.
Posted by Phendyr 5 months ago
Clear radio button answer
Hello all,
I'm trying to create a survey with lots of radio buttons. If the user check an option for a radio button, it can de-selected.
Can someone advise?
Thank you
Posted by Josh 5 months ago
oauth2/token API endpoint is throwing error
Error - {"error":"invalid_request","error_description":"Invalid grant_type parameter or parameter missing"}
```
"grant_type": "authorization_code",
```
Posted by Syed 5 months ago
Only one auth mechanism allowed
I am trying to utilize the Try It API for the /download/:submission_id/:field_id api.
I am getting the following error. Any idea how I can resolve this issue?
<Error><Code>InvalidArgument</Code><Message>Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specified</Message><ArgumentName>Authorization</ArgumentName><ArgumentValue>Bearer xxxxx</ArgumentValue><RequestId>W89VPMM3MYQK76GH</RequestId><HostId>xxxx</HostId></Error>
Posted by Sean Patterson 6 months ago
How to center dynamic images (via Powerpoint templates) with different width?
In Powerpoint I am using a dynamic image, something like this: {$imageVariableName|insert_image:117:0:0:41}
The potential images differ in width. The resulting PDF file has the image aligned on the left. The image should be aligned in the center. Is this possible?
This is the result I want (for the 2nd images):
![](https://files.readme.io/8efac8b-image.png)
This is the result I get:
![](https://files.readme.io/00e4286-image.png)
How to center the dynamic image?
Posted by Niels Ondersteijn 6 months ago
Return true/ false for checkbox
Hi,
I'm trying to return true for each checkbox that is checked. Is this possible? I'm currently using values for the check boxes however each has to be unique, i.e I cant put true multiple times.
Cheers
Adam
Posted by Adam 6 months ago
Field Attribute is not changed via API
I tried to use API in R studio to modify my form. I want to create a numerical field with 2 dp and min of 0. I created a function to do so called create_fields.
create_fields \<- function(api_token, form_id, label) {
# API URL for adding a field
url \<- paste0("<https://www.formstack.com/api/v2/form/">, form_id, "/field.json")
# Payload
payload \<- sprintf(
"{\"hide_label\":false,
\"description_callout\":false,
\"required\":false,
\"readonly\":false,
\"hidden\":false,
\"uniq\":false,
\"colspan\":1,
\"sort\":null,
\"field_type\":\"number\",
\"label\":\"%s\",
\"decimals\":2,
\"min_value\":0}", label)
# API request
response \<- VERB("POST", url, body = payload, add_headers('authorization' = paste('Bearer', api_token)), content_type("application/json"), accept("application/json"),encode = "json")
# Return the API response
return(cat(response$status_code,"\\n",content(response, "text")))
}
I managed to connect to my test form but the numerical field generated just use default attributes (0 dp and no min value) rather than attributes specified in the function.
Regards,
Ray
Posted by Ray Wei 7 months ago
Can an API changelog be added?
Recent API changes related to encryption passwords have been breaking our API. Is it possible to add a changelog for the API so we can have some knowledge that things have changed?
Posted by Derick Falk 7 months ago
Using a maps to position a pin and collect the coordinates in the form
Hi, I'm wondering if there would be a way to embed a map view (Google Maps or any) to for the user to place a pin on it and then collect coordinates when they send the form.
Posted by Ben 7 months ago