Login Form

Hi when  I use a bootstrap template in my login.html the web core, continue to show de forms in background, how could config to web core just show de html template.




1 Like

The HTML template used for your form is the only HTML that should be displayed unless you have inserted other controls on your DFM that are not linked to template HTML elements.
A sample of a template where only the template is visible is under Demos\Basics\HTML

It´s ocorre just I used with popup := true if popup := false the background form is not shwoed, in the dfm have nothing more than the html template.


object frmLogin: TfrmLogin
  Left = 0
  Top = 0
  Width = 343
  Height = 333
  Color = clAqua
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  TabOrder = 1
  Visible = True
  object edtIdentificacao: TWebEdit
    Left = 80
    Top = 96
    Width = 193
    Height = 19
    ElementID = 'nome'
    TextHint = 'Entre com sua identifica'#231#227'o.'
  end
  object edtSenha: TWebEdit
    Left = 80
    Top = 171
    Width = 193
    Height = 19
    ElementID = 'password'
    TextHint = 'Informe a senha conforme cadastrado.'
  end
  object btnEntrar: TWebButton
    Left = 128
    Top = 232
    Width = 96
    Height = 41
    Caption = 'Entrar'
    ElementClassName = 'btn btn-primary'
    ElementID = 'brnConfirm'
    OnClick = btnEntrarClick
  end
end


hi i have same problem .... my login HTML template is hooked to form controls trougth ElemntID (sure all controls) but at run time i've my login form plus another of example Music with boostrap formatted with label 'Please sign up' ... but i dont have any 'Please sign up' in my form ... im confused !!! this is a cache problem ??

Solved, i canceled cache of chrome ...


now how can i avoid cache when application start ? in my index.html i use : 

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
 
but dont go !!

I'm not sure how to interpret your answer. You mention "solved" and then you mention "don't go"?

solved clearing manually cache of chrome, but i want to ignore caching when application start with index.html page. I tryied to use meta tag as above mentioned but dont go fine again ... Its a problem of your local web server ?

It is a debug web server, so it is of course not as full-featured as a real web server like Apache, IIS, ...