I am trying to add a Form named bolg to the sample website. and link the added Form to the main. At this time, I was told “NameError: name ‘blog’ is not defined at Main, line 58”
I am a newbie and I would be happy if you could tell me what the problem is.
What I’ve tried and what’s not working:
I compared the newly added Form with the original Form settings and didn’t find any difference.
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
def faq_link_click(self, **event_args):
“”“This method is called when the link is clicked”""
self.content_panel.clear()
self.content_panel.add_component(FAQ(), full_width_row=True)
def blog_link_click(self, **event_args):
“”“This method is called when the link is clicked”""
self.content_panel.clear()
self.content_panel.add_component(blog(), full_width_row=True)
Clone link:
share a copy of your app
https://anvil.works/build#clone:5RHYOOZM6RQ64JXA=VKGKR5LZBVCF3MCHWBMCIH44