Forums

Chronoforms v7 - call web service

digitaladvice 17 Nov, 2023
Hi, is it possible to insert a button in a form that invokes a rest or soap or json web service.

Thanks and regards
Max_admin 18 Nov, 2023
Answer
Use the CURL action to call a web service

results are returned as a variable {var:curl_action_name}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
digitaladvice 20 Nov, 2023
Thanks for reply. Can i pass a json as input? if yes, how can I do it?
thanks and regards
Max_admin 20 Nov, 2023
1 Likes
you can post any data, just use whatever values for the CURL call, you can set the value of json using PHP action:

return '{1,2,3}';

then in your curl parameters:
myjson_var={var:php_action_name}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.