Problem/Motivation

The question is not required.

At the moment one can configure a faq field to be required but only the answer is validated to be filled in.

Proposed resolution

Make the question required as well.

Remaining tasks

Add a constraint on the question field.

User interface changes

none

API changes

none

Data model changes

Add 'not null' on the question column.

Comments

mpp created an issue. See original summary.

sergiu stici’s picture

I created the patch, you can change this options in "Manage form display".

sergiu stici’s picture

Status: Active » Needs review
mpp’s picture

StatusFileSize
new1.24 KB
new2.43 KB

Thanks @Sergiu Stici, I added $this->t() for the translations.

mpp’s picture

StatusFileSize
new3.09 KB

Also added the settings to the schema.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed 51c430e on 8.x-1.x authored by mpp
    Issue #2976550 by mpp, Sergiu Stici, pifagor: Both question and answer...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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