Error in the client side code

I am trying to create a app which stores the data of the employess

What I’ve tried and what’s not working:

Name= self.text_box_1.text
Unique_id= int(self.text_box_2.text)
role= self.text_box_3.text
address= self.text_area_1.text
mobile= int(self.text_box_1.text)
date= self.date_picker_1
checkbox= self.check_box_1.checked
checkbox2= self.check_box_2.checked
image = self.file_loadder_1
Anvil.server.call(‘SUBMIT’, Name=Name, Unique_id=Unique_id, role=role, address=address, mobile=mobile, date=date, checkbox=checkbox, checkbox2=checkbox2, image=image)
Notification(“Your response has been recorded”).show(10)

the error is in the marked line

Clone link:

That’s because you are using weird single and double quotes, it should be like this:

    anvil.server.call('SUBMIT', Name=Name, Unique_id=Unique_id, role=role, address=address, mobile=mobile, date=date, checkbox=checkbox, checkbox2=checkbox2, image=image)
    Notification("Your response  has been recorded").show(10)

Also, anvil shouldn’t be capitalized.

1 Like