I am new to streamlit and i am creating a webpage and in that I have a question and want to have four checkboxes for it, if first 2 are checked than next two should be disabled, when third is checked then 1,2 and 4 should be disabled, when 4 is selected then all of the above should be disabled, how can this be possible.
You seem to have missed some conditions in your description:
What if either 1st one or the 2nd one is individually selected? What needs to be done then?
If the 3rd one is selected, checkbox #4 will be disabled. So the 4th checkbox will never be able to be selected after selecting the 3rd checkbox.
You will be able to implement the above for 1 single run, not for multiple iterations. You need to think about all relevant conditions / combinations of selecting and disabling the checkboxes before proceeding ahead.