-
Greenfield_JoshAnswered on June 04, 2023 11:57 AM
Hi,
I am using an API to edit a form, but I only see the ability to edit a heading element's header and not the subheader/subtext. I am using question[text]=New Text and https://api.jotform.com/form/{formID}/question/{questionID}?apiKey={apiKey}
please advise on how to edit the subtext/subheader with an API.Thank you,
Josh
-
Sweta JotForm SupportAnswered on June 05, 2023 07:38 AM
Hi Greenfield_Josh,
Thanks for reaching out to Jotform Support. You can use the following subheading property to enter the sub-heading text:
questions[0][subHeader]=" This is a sub Heading"
Give it a try and let us know if you need any help.
-
Greenfield_JoshAnswered on June 05, 2023 06:14 PM
Hi Sweta,
Thank you for your response. It doesn't seem to be working for me. I am using make.com to create my api and have added question[text] as the name of a Query string and have had success. But when I added questions[0][subHeader] as query string name, I am getting error with status code 404. the HTTP curl i am using is https://api.jotform.com/form/{FormID}/question/6?
Let me know if you can help please -
Felizio JotForm SupportAnswered on June 06, 2023 03:07 AM
Hi Josh,
Thanks for reaching out to Jotform Support. I've tested some API requests for you and found out that you can use the key below to change the sublabel of a field on your form.
questions[subLabel]
After sending the request, the sublabel of the field changed as you can see in the screenshot below:
Give it a try and let us know how it goes.