The correct way to say "I was surprised by that" in French is:
"Ça m'a surpris."
You were right about "ça" and "surpris," but you need to include the "m'" which is the contraction of "me" in this context.
Let me know if you have any other French phrases you'd like to translate!