List questions a form may ask
curl --request GET \
--url https://{organization}.rescueconsole.com/api/forms/{id}/available-fields \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/forms/{id}/available-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/forms/{id}/available-fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"field_key": "<string>",
"label": "<string>",
"field_type": "text",
"options": [
"<string>"
],
"required": true,
"source": "layout",
"entity": "person",
"on_form": true
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Forms
List questions a form may ask
A form asks only for things the record it makes already keeps: the built-in fields a member of the public can fill in, and your own custom fields, in the order your record layout gives them. A field hidden on the layout is not offered. An adoption or foster application may also ask which of your listed animals the applicant is asking about. To ask something new, add it under Settings → Custom fields first. Needs read on the area of the form’s kind.
GET
/
api
/
forms
/
{id}
/
available-fields
List questions a form may ask
curl --request GET \
--url https://{organization}.rescueconsole.com/api/forms/{id}/available-fields \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/forms/{id}/available-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/forms/{id}/available-fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"field_key": "<string>",
"label": "<string>",
"field_type": "text",
"options": [
"<string>"
],
"required": true,
"source": "layout",
"entity": "person",
"on_form": true
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}