Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to read formControlRange Value after pressing a button
#11
Hi Alexandre,

Don't know if I see the complete picture.

I created an example 

  • Added a HiddenField named 'formControlRange'
  • A IWText holding the lines
    Code:
    <label for="formControlRange">Example Range input</label>
    <input type="range" min="1" max="100" class="form-control-range" id="formControlRange" name="formControlRange">
  • Two buttons. One with OnClick handler and one with OnAsyncClick handler. Both with following code
    Code:
    IWEdit1.Text := HiddenFields.Values['formControlRange'];


For the OnClick handler the hiddenfield is updated and sent to the server.
For OnAsyncClick this is not the case. No updated value is send to the server.

I thought a js call to AddChangedControl("formControlRange"); would be needed.
Reply
#12
Hi Jeroen,

You are correct regarding Async events. You need to explicitly tell IW that you want to submit that control content to the server, calling AddChangedControl()

It is not necessary in sync events, though, which was the specific case of this question.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)