How do I disable a character jump, if two characters use the same blueprint.

I have made it so I can switch between my two characters depending on which button you press. Is there a way to disable jump for one of them if a certain button has been pressed? As they both share the same movement blueprint.

I would add a boolean to the character that is used to enable/disable jumping.
You will need to use a branch on the jump event that uses the boolean.