05-03-2020, 01:24 AM
(05-02-2020, 11:15 PM)Alexandre Machado Wrote: Please add the name attribute to the input field, the same as ID, example:Missing input Name. Yes! Work fine!
<input id="formControlRange" name="formControlRange">
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;

