Not sure what you mean by "Set button to true". That's not a thing.
If you mean "Show my button or hide it"?
Display property · Bootstrap[
^]
if you mean "Disable my button then there is some info down this page:
Buttons · Bootstrap[
^]
If not, then please specify what you mean