Adhesive hydrogels based on chemically modified photocrosslinkable polymers with specific physicochemical properties are frequently utilized for sealing wounds or incisions. These adhesive hydrogels offer tunable characteristics such as tailorable tissue adhesion, mechanical properties, swelling ratios, and enzymatic degradability. In this study, we developed and optimized a photocrosslinkable adhesive patch, GelPatch, with high burst pressure, minimal swelling, and specific mechanical properties for application as an ocular (sclera and subconjunctival) tissue adhesive. To achieve this, we formulated a series of hydrogel patches composed of different polymers with various levels of methacrylation, molecular weights, and hydrophobic/hydrophilic properties. A computerized multifactorial definitive screening design (DSD) analysis was performed to identify the most prominent components impacting critical response parameters such as adhesion, swelling ratio, elastic modulus, and second order interactions between applied components. These parameters were mathematically processed to generate a predictive model that identifies the linear and non-linear correlations between these factors. In conclusion, an optimized formulation of GelPatch was selected based on two modified polymers: gelatin methacryloyl (GelMA) and glycidyl methacrylated hyaluronic acid (HAGM). The ex vivo results confirmed adhesion and retention of the optimized hydrogel subconjunctivally and on the sclera for up to 4 days. The developed formulation has potential to be used as an ocular sealant for quick repair of laceration type ocular injuries.