Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to read formControlRange Value after pressing a button
#8
(05-02-2020, 11:15 PM)Alexandre Machado Wrote: Please add the name attribute to the input field, the same as ID, example:

<input id="formControlRange" name="formControlRange">
Missing input Name. Yes! Work fine!
Thank you very much for helping.
------------------------------------------------------------------
<label for="formControlRange">Example Range input</label>
<input type="range" min="1" max="100" value="20" class="form-control-range" id="IW_formControlRange" name="IW_formControlRange"  >
-----------------------------------------------------------------
procedure TIWForm2.IWAppFormCreate(Sender: TObject);
begin
  HiddenFields.AddPair('IW_formControlRange','');
end;
-----------------------------------------------------------------
procedure TIWForm2.IWBS4Button1AsyncClick(Sender: TObject;
  EventParams: TStringList);
var
  S: String;
  oApp: TIWApplication;
begin
  oApp:=WebApplication;
  oApp.ShowMessage(oApp.Request.Params.Text);

  S:=HiddenFields.Values['IW_formControlRange'];
  if not S.IsEmpty  then 
    oApp.ShowNotification(S)
  else 
    oApp.ShowMessage('No Values');
end;
Reply


Messages In This Thread
RE: How to read formControlRange Value after pressing a button - by newsanti - 05-03-2020, 01:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)