Grammar
N3AI-drafted〜ほかない/〜しかない
have no choice but to ~
Formation
V-辞書形 + ほか(は)ない・しかない/N + しかない
Usage
States that, given the circumstances, only one option remains; it usually carries reluctance or resignation. 〜しかない is the everyday, spoken form, while 〜ほか(は)ない sounds more formal and literary. Both follow the dictionary form of a verb; remember that しかない after a noun instead means 'there is only ~' (quantity), e.g. 千円しかない.
Examples
電車が止まったので、歩いて帰るしかない。
でんしゃがとまったので、あるいてかえるしかない。
The trains have stopped, so I have no choice but to walk home.
やり方が分からないなら、先輩に聞くしかないよ。
やりかたがわからないなら、せんぱいにきくしかないよ。
If you don't know how to do it, you'll just have to ask a senior colleague.
今の状況では、計画を中止するほかない。
いまのじょうきょうでは、けいかくをちゅうしするほかない。
Under the present circumstances, there is nothing to do but cancel the plan.