New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input required attribute not working in options modal #274
Comments
Try array(
'type' => 'text',
'attr' => array('required' => 'required'),
) |
It does show required |
You did not specified that options are inside modal. |
Hi, |
@levan1993 Thank you for the suggestion. Yes, for the question with required inputs inside options modal this is the solution. But I am thinking a way to auto-generate a unique id without bothering the user to enter manually one for each section/column. |
Do you want to generate unique id while building page or on post save ? |
@levan1993 I don't know yet. I will let you know when I will decide. |
Do you need these ids for CSS stuff? |
Ops, I thought this is #275 The solution for this issue is #274 (comment) I will fix it soon. |
I can't solve this |
Hack but works |
This combo might help also for multiple required |
The user will not understand why modal is not closing when he clicks the Save button. The warning popup must be displayed. |
P.S. Is this feature still needed if section id will be generated automatically? |
adding a class to required on click if it is empty can help there, like here like this |
well no it is not needed for me if I have the ID but someone else might want to use required in popup. |
If will be needed I will reopen this. (There are other important issues in pending) |
My solution shows browser native validation ( shows native bubbles ), for example : I will modify your fw.OptionsModal and upload it |
I need a required option attribute that will not let user save the options unless the option has been filled out.
I am using short-text or text, but in general is there and attribute we can add to make user fill out the option before save?
The text was updated successfully, but these errors were encountered: