2

I have created a flag (using the Flag module) called status and a field to it and named it remarks. Now, how do I let users to flag other users and fill in the remarks field for that particular flag.

All I am able to do is toggle the flag.

I couldn't find any documentation on it and the complimentary module of flag called flagging form is obsolete.

When a user flags another user, I want a pop-up to appear asking them for remarks before flagging the user.

1

When configuring flag(s) (using the Flag module), you can indeed attach fields to them. However when doing so, make sure to also be aware about (and do) what is described in Attaching fields to flags, i.e.:

By default, Flags use the "JavaScript toggle" link-type. While this allows entities to be flagged without reloading the page, users cannot set any field values with the Flag. In order for users to set a Flag's field values, you must use the "Form" link type.

Navigate to Administration > Structure > Flags page. Click the Edit link for the Flag. Scroll down to the Display Options box and select the Confirmation Form radio button.

  • thanks. however there is an ajax error (HTTP Result Code 200) now where it should be the dialog box. I used dialog and flagging form module alongside. Is that the cause? – innocent rock Jul 22 '16 at 12:31
  • I think I will use javascript to produce that dialog, and remove that module. – innocent rock Jul 22 '16 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.