Display HTML data from API call to Custom Component

Hi I got a HTML response from my API which is good but how can I pass it to the custom component? I'm currently using the success handler to update the model to achieve this, but can't figure it out at the moment. Pls see screenshot below

Hi @dr10

you need to wire {{data.message}} to the component model, the {test: ''}, so:

{
   test: {{data.message}}
}

Hope this help

Hi @abusedmedia is says data is not defined

Screenshot from 2023-12-24 13-28-50

You should refer to your query name query1.data.message or any other source name in your Retool app.

@abusedmedia I have figured this out btw. thanks for the help!