Adding HTML 5 Validation for Select-Radio-Checkbox fields automatically on all forms.

This module is made on Drupal 8. Please help me to cover the security advisory policy.

Project link

https://www.drupal.org/project/s_r_c_html5_validation

Git instructions

git clone --branch 8.x-2.x https://git.drupalcode.org/project/s_r_c_html5_validation.git

PAReview checklist

https://pareview.sh/pareview/https-git.drupal.org-project-s_r_c_html5_validation.git-8.x-2.x

Comments

rohit-drupal created an issue. See original summary.

vernit’s picture

Status: Reviewed & tested by the community » Needs work

Below are error show in pareview. Please fix them before proceed

Your README.txt does not follow best practices (headings need to be uppercase). See https://www.drupal.org/node/2181737 .
The INTRODUCTION section is missing.
The REQUIREMENTS section is missing.
The INSTALLATION section is missing.
The CONFIGURATION section is missing.
The s_r_c_html5_validation.module does not implement hook_help(). See https://www.drupal.org/docs/develop/documenting-your-project/module-docu...
No automated test cases were found, did you consider writing PHPUnit tests? This is not a requirement but encouraged for professional software development.

ankush_03’s picture

StatusFileSize
new110.37 KB

@vernit

8.x-1.x branch pareview is fine Attached screenshot.

ankush_03’s picture

But Agree with @vernit comment, your readme file is not descriptive (Spelling mistakes and a single line description).

Review and fix it.

rohitrajputsahab’s picture

Issue summary: View changes
rohitrajputsahab’s picture

Status: Needs work » Reviewed & tested by the community

@Vernit Pareview errors and warning is already fixed.

@ankushgautam76@gmail.com Fixed Typo

ankush_03’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new32.64 KB
new48.62 KB

@Rohit,

I have created a new field list text in a content type (Required : true)
Change the display to radio

It is not working (Attached screenshot).

rohitrajputsahab’s picture

Status: Needs work » Reviewed & tested by the community

@ankushgautam76@gmail.com Please check now.

I have created a new branch. Please take the clone below command.
git clone --branch 8.x-2.x https://git.drupalcode.org/project/s_r_c_html5_validation.git

ankush_03’s picture

Status: Reviewed & tested by the community » Needs review

Do not change the status to RTBC Directly.

ankush_03’s picture

@rohit-drupal

Allow me some time for review.

avpaderno’s picture

rohitrajputsahab’s picture

rohitrajputsahab’s picture

Hi All,

I'm waiting for your feedback.

rksyravi’s picture

Hi @rohit-drupal,

Your module is working fine, both automated and manually.

rksyravi’s picture

StatusFileSize
new52.05 KB

Hi again,

check the attachment. for reference.

rohitrajputsahab’s picture

Status: Needs review » Reviewed & tested by the community

@rksyravi Thank you

I have changed the status "Reviewed & tested by the community".

rksyravi’s picture

Status: Reviewed & tested by the community » Needs review

Hi @rohit-drupal,

Since this is your project, so you are not authorized to change the status to RTBC

navodit’s picture

@rohit-drupal

I have tested your module both automated and manual. It's working fine.

Thanks for your contribution.

rohitrajputsahab’s picture

@Navodit Thank you so much.

rohitrajputsahab’s picture

Hi Again,

I'm waiting for user's feedback and updates.

klausi’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for your contribution!

Why do you need a Javascript file to change HTML 5 form markup? That will not work in browsers that have JS disabled? Why can't you process the form element in PHP and set the attribute there?

Otherwise looks good to me, did not see any security issues.

rohitrajputsahab’s picture

@klausi
If the user using JS disable addon. All JS files stop working, not mine one.
PHP code takes a lot of code to check, which fields are required or not.

So, I compared both things, then I went with JS.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

rohitrajputsahab’s picture

Thank you, everyone, for your comments and suggestions.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.