0 Replies Latest reply on Aug 2, 2017 7:23 AM by fmanniti RSS
    fmanniti Creator

    Run a service from HTML button click

    Hello, I have a thing with a NUMBER property (let's call it prop) and a service (let's call sumProp) which sums prop value with a input value.

     

    I created a service which returns a HTML basetype result like this:

     

    html += '<p>Value: <input id="ValueInput" type="text" name="user"></p>';
    html += '<button>Set</button>';
    

     

    I would like that, on button click, will be triggered service sumProp where the input value is the value in <input id="ValueInput" type="text" name="user">

     

    Is it possible to do this?