0

I have the following template to delete an account :

enter image description here

To Delete this account first you need to tick the checkbox then Button Delete will be enabled, this is what to be done

My question is it possible to perform this using jinja2 Templating ? if yes how ?

Thanks. /K

2
  • Yes, it is possible using javascript. Commented May 16, 2019 at 11:43
  • do you have an example ? Commented May 16, 2019 at 11:48

1 Answer 1

0

Basically, you want your checkbox to be required, right?
That's simple: use <input required> if you only want to notify the user on clicking the button without checked box.
If you want to disable the button entirely, you will need to write some js.

Sign up to request clarification or add additional context in comments.

1 Comment

How to implement it using jinja2 ?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.