Przykłady formularzy - newsletter

Utworzono: 2022-06-21
Ostatnia aktualizacja: 2022-06-21
Liczba odwiedzin posta: 689

Formularzy z Sugestera można użyć jako formatki do zapisania się na newsletter. 

Poniżej 3 przykłady formularzy dla newslettera. Aby osadzić tak wyglądający formularz na stronie www, wystarczy w szablonach formularzy wybrać konkretny szablon i użyć kodu CSS podanego przy przykładzie. 

W podanych kodach CSS wyszczególniono na samej górze elementy takie jak kolor przycisku, kolor tła, kolor krawędzi, aby można było je łatwo samemu zmienić. Wystarczy zamienić kolor na wybrany z palety. 
Kolory można pobierać tutaj: https://www.w3schools.com/colors/colors_picker.asp

Po stworzeniu formularzy zachęcamy do ustawienia mapowania, tak by odpowiednie dane z formularza zapisywały się automatycznie w Sugesterze.

1. 




Aby umieścić taki formularz na stronie, należy:
  • wejść w zakładkę Formularze z głównego menu i kliknąć przycisk "+Dodaj" w prawym górnym rogu
  • wybrać prosty formularz kontaktowy
  • w sekcji "Wybierz typy pól" można dodać dodatkowe "pola wielokrotnego wyboru", żeby otrzymać checkboxy. Należy zostawić tylko jedną opcję przy tym polu
  • rozwinąć "Więcej opcji" i w polu "Zmiana wyglądu/działania (własny CSS lub Javascript przed formatką)" wkleić poniższy kod (po kliknięciu w pole kodu, pojawi się suwak do scrollowania)
  body {
    /* text */
    --dark-text: #730099;
    --medium-dark-text: #333;
    --medium-text: #999;
    --light-text: #aaa;

    /* backgrounds/tła */
    --light-background: #fff;
    --errors-background: #fff6f6;

    /* borders/krawędzie */
    --light-border: #e5e6e7;
    --dark-border: #ddd;
    --errors-border: #ff9292;

    /* button/przycisk */
    --button-text: #333;
    --button-background: #d966ff;
    --button-background-hover: #fff;
  }

  .gray-bg #form_result_attachments, .gray-bg .btn.btn-link.fileinput-button {
    clear: both;
    display: inline-block;
    float: none;
    margin-bottom: 10px;
    margin-top: 9px;
    width: auto;
  }
  .gray-bg .appendix_li {
    display: block;
  }
  .gray-bg .delete_field, .gray-bg .appendix_li>div>span.pull-right {
    color: red;
    float: right;
    font-weight: bold;
  }
  .gray-bg .lavina_form {
    text-align: left;
    line-height: 21px;
  }
  body.gray-bg {
    margin: auto;
    padding: 20px;
    width: 687px;
    overflow: auto;
  }
  body.gray-bg .lavina_form div.label>div {
    line-height: 20px;
  }
  body.gray-bg .lavina_form .short-field {
    margin-right: 19px;
  }
  .label {
    white-space: normal !important;
  }
  .gray-bg .lavina_form div.label {
    background-color: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    text-shadow: none
  }
  .gray-bg .lavina_form .s3_uploader+div.text, .gray-bg .lavina_form div.label.small-title label {
    border: 0 none;
    font-size: 14px;
    margin: 0;
  }
  .gray-bg .lavina_form .short-field {
    float: left;
    width: 34%
  }
  .gray-bg .lavina_form .short-field input {
    margin-right: 10px;
    min-width: 15px;
    width: 92%!important
  }
  .gray-bg .lavina_form .short-field:after {
    content: " ";
    display: block;
    clear: both;
    width: 100%;
    float: none
  }
  .gray-bg .lavina_form .clear-before:before {
    content: " ";
    display: block;
    clear: both;
    width: 100%;
    float: none
  }
  .s3_uploader+div.text {
    border-top: 1px dashed var(--medium-text);
    color: var(--dark-text);
    display: block;
    font-size: 18px;
    margin: 50px 0 10px;
    padding-bottom: 10px;
    padding-top: 17px;
    text-align: left
  }
  .lavina_form div.label>div {
    color: var(--light-text);
    font-size: 13px
  }
  .lavina_form div.label {
    margin: 0
  }
  .lavina_form div.label>div {
    color: var(--medium-text);
    text-align: left;
  }
  .lavina_form1 [id^="fieldWithErrors"] select, .lavina_form1 [id^="fieldWithErrors"] textarea, .lavina_form1 [id^="fieldWithErrors"] input {
    background-color: var(--errors-background) !important;
    border: 1px solid var(--errors-border) !important;
  }
  .lavina_form label {
    font-weight: 400;
    margin: 0 auto 5px;
  }
  .lavina_form .form_description {
    display: none;
  }
  .gray-bg .lavina_form .form_description {
    color: var(--dark-text);
    display: block;
    font-size: 26px;
    font-weight: lighter;
    line-height: 34px;
    margin-bottom: 29px;
    margin-top: 5px;
    display: block;
  }
  .lavina_form .radio, .lavina_form .checkbox {
    display: inline-block;
    margin-right: 10px!important
  }
  .lavina_form select, .lavina_form textarea, .lavina_form input[type="text"], .lavina_form input[type="date"] {
    background-color: var(--light-background);
    background-image: none;
    border: 1px solid var(--light-border);
    border-radius: 1px;
    color: inherit;
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    max-width: 100%;
    min-width: 100%;
    padding: 6px 12px;
    transition: border-color .15s ease-in-out 0s, box-shadow .15s ease-in-out 0;
    width: auto!important
  }
  #form_result_attachments_container {
    border-bottom: 1px dashed var(--dark-border);
    content: " ";
    display: block;
    margin-bottom: 0 !important;
    padding-bottom: 20px;
    width: 100%;
  }
  .lavina_form input[type="submit"], .lavina_form input[type="button"] {
    background: var(--button-background);
    border: 2px solid #3c3c3c;
    border-radius: 25px;
    color: var(--button-text);
    padding: 10px 15px;
    transition: color .2s ease-out;
    font-size: 1.2rem;
    line-height: 1.2rem;
    font-weight: 600;
    height: 41px;
    min-width: 120px;
    width: auto;
  }
  .lavina_form input[type="submit"]:hover, .lavina_form input[type="button"]:hover {
    background: var(--button-text) !important;
    color: var(--button-background-hover) !important;
  }
  .gray-bg .lavina_form {
    background: var(--light-background) none repeat scroll 0 0;
    line-height: 21px;
    margin-bottom: 100px;
    padding: 50px;
    text-align: left;
  }
  .lavina_form>form+div {
    text-align: right;
  }
  .lavina_form>form+div>a {
    color: var(--medium-text);
    display: block;
    padding-top: 11px;
    text-align: right;
  }
  .lavina_form .radio label, .lavina_form .checkbox label {
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 10px;
    min-height: auto;
    padding: 0px;
  }
  #form_result_attachments, .btn.btn-link.fileinput-button {
    clear: both;
    display: inline-block;
    float: none;
    margin-bottom: 10px;
    margin-top: 9px;
    width: auto;
  }
  </style>
 

2. 





Aby umieścić taki formularz na stronie, należy:
  • wybrać prosty formularz kontaktowy
  • w sekcji "Wybierz typy pól" można dodać dodatkowe "pola wielokrotnego wyboru", żeby otrzymać checkbox. Należy zostawić tylko jedną opcję przy tym polu
  • rozwinąć "Więcej opcji" i w polu "Zmiana wyglądu/działania (własny CSS lub Javascript przed formatką)" wkleić poniższy kod (po kliknięciu w pole kodu, pojawi się suwak do scrollowania)
body {
  /* text */
  --dark-text: #ffffff;
  --medium-dark-text: #000;
  --medium-text: #ffffff;
  --light-text: #ffffff;

  /* backgrounds/tła */
  --light-background: #fff;
  --errors-background: #fff6f6;
--form-background: #e6b3ff;

  /* borders/krawędzie */
  --light-border: #ffffff;
  --dark-border: #ddd;
  --errors-border: #ff9292;
  --form-border: #E0DFE0;
  --form-top-border: #ff9933;

  /* buttons/przyciski */
  --button-text: #ffffff;
  --button-background: #ff9933;
  --button-background-hover: #005c38;
}

.gray-bg #form_result_attachments, .gray-bg .btn.btn-link.fileinput-button {
  clear: both;
  display: inline-block;
  float: none;
  margin-bottom: 10px;
  margin-top: 9px;
  width: auto;
}
.gray-bg .appendix_li {
  display: block;
}
.gray-bg .delete_field, .gray-bg .appendix_li>div>span.pull-right {
  color: red;
  float: right;
  font-weight: bold;
}
.gray-bg .lavina_form {
background: var(--form-background) !important;
  text-align: left;
  line-height: 21px;
}
body.gray-bg {
  margin: auto;
  padding: 20px;
  width: 687px;
  overflow: auto;
}
body.gray-bg .lavina_form div.label>div {
  line-height: 20px;
}
body.gray-bg .lavina_form .short-field {
  margin-right: 19px;
}
.label {
  white-space: normal !important;
}
.gray-bg .lavina_form div.label {
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  text-shadow: none
}
.gray-bg .lavina_form .s3_uploader+div.text, .gray-bg .lavina_form div.label.small-title label {
  border: 0 none;
  font-size: 14px;
  margin: 0;
}
.gray-bg .lavina_form .short-field {
  float: left;
  width: 34%
}
.gray-bg .lavina_form .short-field input {
  margin-right: 10px;
  min-width: 15px;
  width: 92%!important
}
.gray-bg .lavina_form .short-field:after {
  content: " ";
  display: block;
  clear: both;
  width: 100%;
  float: none
}
.gray-bg .lavina_form .clear-before:before {
  content: " ";
  display: block;
  clear: both;
  width: 100%;
  float: none
}
.s3_uploader+div.text {
  border-top: 1px dashed var(--medium-text);
  color: var(--dark-text);
  display: block;
  font-size: 18px;
  margin: 50px 0 10px;
  padding-bottom: 10px;
  padding-top: 17px;
  text-align: left
}
.lavina_form div.label>div {
  color: var(--light-text);
  font-size: 13px
}
.lavina_form div.label {
  margin: 0
}
.lavina_form div.label>div {
  color: var(--medium-text);
  text-align: left;
}
.lavina_form1 [id^="fieldWithErrors"] select, .lavina_form1 [id^="fieldWithErrors"] textarea, .lavina_form1 [id^="fieldWithErrors"] input {
  background-color: var(--errors-background) !important;
  border: 1px solid var(--errors-border) !important;
}
.lavina_form label {
  font-weight: 400;
  margin: 0 auto 5px;
}
.lavina_form .form_description {
  display: none;
}
.gray-bg .lavina_form .form_description {
  color: var(--dark-text);
  display: block;
  font-size: 26px;
  font-weight: lighter;
  line-height: 34px;
  margin-bottom: 29px;
  margin-top: 5px;
  display: block;
}
.lavina_form .radio, .lavina_form .checkbox {
  display: inline-block;
  margin-right: 10px!important
}
.lavina_form select, .lavina_form textarea, .lavina_form input[type="text"] {
  background-color: var(--light-background);
  background-image: none;
  border: 1px solid var(--light-border);
  border-radius: 1px;
  color: inherit;
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  max-width: 100%;
  min-width: 100%;
  padding: 6px 12px;
  transition: border-color .15s ease-in-out 0s, box-shadow .15s ease-in-out 0;
  width: auto!important
}
#form_result_attachments_container {
  border-bottom: 1px dashed var(--dark-border);
  content: " ";
  display: block;
  margin-bottom: 0 !important;
  padding-bottom: 20px;
  width: 100%;
}
.lavina_form input[type="submit"], .lavina_form input[type="button"] {
  border-image: none;
  border-radius: 4px;
  border-style: solid;
  border-width: 1px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--button-text) !important;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  height: auto;
  letter-spacing: 1px;
  line-height: 18px;
  margin-bottom: 20px;
  margin-top: 20px;
  padding: 8px 48px;
  text-align: center;
  text-shadow: none;
  text-transform: uppercase;
  vertical-align: middle;
  width: 100%;
  background: var(--button-background) !important;
}
.lavina_form input[type="submit"]:hover, .lavina_form input[type="button"]:hover {
  background: var(--button-background-hover) !important;
  transition: .2s ease;
}
.disclaimer-content {
  width: 100%;
  max-height: 350px;
  padding: 10px;
  margin: 20px 0;
  background-color: #e6ffe6;
  border: 1px solid rgba(60,60,60,.26);
  border-radius: 4px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 21px;
  cursor: default;
}
.gray-bg .lavina_form {
  background: var(--light-background) none repeat scroll 0 0;
  line-height: 21px;
  margin-bottom: 100px;
  padding: 50px;
  text-align: left;
  border: 2px var(--form-border) solid;
  border-top: 4px var(--form-top-border) solid;
}
.lavina_form>form+div {
  text-align: right;
}
.lavina_form>form+div>a {
  color: var(--medium-text);
  display: block;
  padding-top: 11px;
  text-align: right;
}
.lavina_form .radio label, .lavina_form .checkbox label {
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 10px;
  min-height: auto;
  padding: 0px;
}
#form_result_attachments, .btn.btn-link.fileinput-button {
  clear: both;
  display: inline-block;
  float: none;
  margin-bottom: 10px;
  margin-top: 9px;
  width: auto;
}
.placeholder_field {
  margin-top: 2rem;
}
</style>
 

3. 




Aby umieścić taki formularz na stronie, należy:
  • wybrać prosty formularz kontaktowy
  • rozwinąć "Więcej opcji" i w polu "Zmiana wyglądu/działania (własny CSS lub Javascript przed formatką)" wkleić poniższy kod (po kliknięciu w pole kodu, pojawi się suwak do scrollowania)
  body {
    /* text */
    --dark-text: #ffffff;
    --medium-dark-text: #ffffff;
    --medium-text: #ffffff;
    --light-text: #ffffff;
    font-family: Arial, Helvetica, sans- serif !important;

    /* backgrounds/tła */
    --light-background: #fff;
    --errors-background: #fff6f6;
    --form-background: #3385ff;

    /* borders/krawędzie */
    --light-border: #e5e6e7;
    --dark-border: #ddd;
    --errors-border: #ff9292;

    /* button/przycisk */
    --button-text: #ffffff;
    --button-background: #cc0000;
    --button-background-hover: #fff;
  }

  .gray-bg #form_result_attachments, .gray-bg .btn.btn-link.fileinput-button {
    clear: both;
    display: inline-block;
    float: none;
    margin-bottom: 10px;
    margin-top: 9px;
    width: auto;
  }
  .gray-bg .appendix_li {
    display: block;
  }
  .gray-bg .delete_field, .gray-bg .appendix_li>div>span.pull-right {
    color: red;
    float: right;
    font-weight: bold;
  }
  .gray-bg .lavina_form {
    background: var(--form-background) !important;
    text-align: left;
    line-height: 21px;
  }
  body.gray-bg {
    margin: auto;
    padding: 20px;
    width: 687px;
    overflow: auto;
  }
  body.gray-bg .lavina_form div.label>div {
    line-height: 20px;
  }
  body.gray-bg .lavina_form .short-field {
    margin-right: 19px;
  }
  .label {
    white-space: normal !important;
  }
  .gray-bg .lavina_form div.label {
    background-color: transparent;
    color: var(--light-text) !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    text-shadow: none
  }
  .gray-bg .lavina_form .s3_uploader+div.text, .gray-bg .lavina_form div.label.small-title label {
    border: 0 none;
    font-size: 14px;
    margin: 0;
  }
  .gray-bg .lavina_form .short-field {
    float: left;
    width: 34%
  }
  .gray-bg .lavina_form .short-field input {
    margin-right: 10px;
    min-width: 15px;
    width: 92%!important
  }
  .gray-bg .lavina_form .short-field:after {
    content: " ";
    display: block;
    clear: both;
    width: 100%;
    float: none
  }
  .gray-bg .lavina_form .clear-before:before {
    content: " ";
    display: block;
    clear: both;
    width: 100%;
    float: none
  }
  .s3_uploader+div.text {
    border-top: 1px dashed var(--medium-text);
    color: var(--dark-text);
    display: block;
    font-size: 18px;
    margin: 50px 0 10px;
    padding-bottom: 10px;
    padding-top: 17px;
    text-align: left
  }
  .lavina_form div.label>div {
    color: var(--light-text);
    font-size: 13px
  }
  .lavina_form div.label {
    margin: 0
  }
  .lavina_form div.label>div {
    color: var(--medium-text);
    text-align: left;
  }
  .lavina_form1 [id^="fieldWithErrors"] select, .lavina_form1 [id^="fieldWithErrors"] textarea, .lavina_form1 [id^="fieldWithErrors"] input {
    background-color: var(--errors-background) !important;
    border: 1px solid var(--errors-border) !important;
  }
  .lavina_form label {
    font-weight: 400;
    margin: 0 auto 5px;
    color: var(--light-text) !important;
  }
  .lavina_form .form_description {
    display: none;
  }
  .gray-bg .lavina_form .form_description {
    color: var(--dark-text);
    display: block;
    font-size: 26px;
    font-weight: lighter;
    line-height: 34px;
    margin-bottom: 29px;
    margin-top: 5px;
    display: block;
  }
  .lavina_form .radio, .lavina_form .checkbox {
    display: inline-block;
    margin-right: 10px!important
  }
  .lavina_form select, .lavina_form textarea, .lavina_form input[type="text"] {
    background-color: var(--light-background);
    background-image: none;
    border: 1px solid var(--light-border);
    border-radius: 1px;
    color: inherit;
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    max-width: 100%;
    min-width: 100%;
    padding: 6px 12px;
    transition: border-color .15s ease-in-out 0s, box-shadow .15s ease-in-out 0;
    width: auto!important
  }
  #form_result_attachments_container {
    border-bottom: 1px dashed var(--dark-border);
    content: " ";
    display: block;
    margin-bottom: 0 !important;
    padding-bottom: 20px;
    width: 100%;
  }
  .lavina_form input[type="submit"], .lavina_form input[type="button"] {
    border-image: none;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--button-text) !important;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    height: auto;
    letter-spacing: 1px;
    line-height: 18px;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 8px 48px;
    text-align: center;
    text-shadow: none;
    text-transform: uppercase;
    vertical-align: middle;
    width: auto;
    background: var(--button-background) !important;
  }
  .lavina_form input[type="submit"]:hover, .lavina_form input[type="button"]:hover {
    background: var(--button-background-hover) !important;
  }
  .gray-bg .lavina_form {
    background: var(--light-background) none repeat scroll 0 0;
    line-height: 21px;
    margin-bottom: 100px;
    padding: 50px;
    text-align: left;
  }
  .lavina_form>form+div {
    text-align: right;
  }
  .lavina_form>form+div>a {
    color: var(--medium-text);
    display: block;
    padding-top: 11px;
    text-align: right;
  }
  .lavina_form .radio label, .lavina_form .checkbox label {
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 10px;
    min-height: auto;
    padding: 0px;
  }
  #form_result_attachments, .btn.btn-link.fileinput-button {
    clear: both;
    display: inline-block;
    float: none;
    margin-bottom: 10px;
    margin-top: 9px;
    width: auto;
  }
  </style>

 

Zarządzaj całą swoją firmą w jednej aplikacji. Wypróbuj Sugester przez 30 dni za darmo!

Rozpocznij darmowy okres testowy


Powrót


Dodaj komentarz