Can a custom html block with form input be used to modify device tag values?

Is it possible to update device tag values from a custom html block that has form input controls? A form input block is shown on your example screenshot (shown below), and the documentation shows several examples of how to get data into the block through queries etc… I’m looking to get data out of a block into device tags if possible.

Hi @Edward_Cline,

The form example included in your screenshot utilizes Losant Experiences to post data to an Experience Endpoint.

In order to accomplish this, you would need to set up an Experience Endpoint and Experience Workflow. Then, within the Custom HTML Block, you would set up a POST request to your Experience Endpoint (/updateTags, for example) and include the form data you would like to use in your device tags. This POST request would then trigger your Experience Workflow, and the payload would include the tag inputs in the request body. With this data in the workflow, you could then use a Device: Update Node to set your device tag values.

Please let me know if you have any further questions or implementation inquiries!

Thanks,
Julia

It’s clear now, thanks!

1 Like