jeremyHixon / RationalOptionPages

PHP Class for building Option Pages in WordPress
MIT License
207 stars 73 forks source link

How to make certain field "required"? (Noob Question) #47

Closed hams-rmdhn closed 9 months ago

hams-rmdhn commented 10 months ago

Hi there!

How to make certain field "required" so user can't submit before fill the required fields?

jeremyHixon commented 10 months ago

@koderama Sorry for the delay in responding. It's busy on this end. I'll try and follow up soon.

hams-rmdhn commented 9 months ago

[SOLVED]

I should add:

attributes{ 'required' => true, }

jeremyHixon commented 9 months ago

Awesome. Glad you sorted it out. Seems like something I should have been able to remember but this makes clear to me how long it's been since I worked on this. Thanks for sharing!