Skip to content

Commit

Permalink
Update Field references in README
Browse files Browse the repository at this point in the history
  • Loading branch information
kbayliss committed Aug 16, 2023
1 parent 2057def commit bc3e07d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ class ExampleForm(TbxFormsMixin, forms.Form):
super().__init__(*args, **kwargs)
self.helper.layout = Layout(
# Add our newsletter sign-up field.
Field("newsletter_signup"),
Field.text("newsletter_signup"),

# Add our email field and define the conditional logic.
Field(
Field.text(
"email",
data_conditional={
"field_name": "newsletter_signup", # Field to inspect.
Expand Down Expand Up @@ -322,8 +322,8 @@ from tbxforms.layout import HTML, Div, Field, Layout
Layout(
Div(
HTML("<p>Some relevant text.</p>"),
Field("some_other_field"),
Field("email"),
Field.text("some_other_field"),
Field.text("email"),
data_conditional={
"field_name": "newsletter_signup",
"values": ["yes"],
Expand Down

0 comments on commit bc3e07d

Please sign in to comment.