Score:0

Set restrictions to nodes displayed after submission

cn flag

I have a content type (AppointmentApplication), which can be used from anonymous users; all the information can be viewed by administrator users.

I don't want all the entered information to be shown right after the node submission by anonymous users in the success page. I just want to show a serial number which can be used from users as their application number. When I restrict the access to this content type display, it effects everyone.

screenshot

id flag
https://www.drupal.org/project/field_permissions
user3099225 avatar
cn flag
@cilefen thanks
Score:2
in flag

Sounds like this is more a job for Webform.

While Content Types/Nodes are quite flexible, it's more for building content pages. Your use case sounds more like arbitrary one-time form submission, which is what Webforms is designed for.

user3099225 avatar
cn flag
No, i dont need webform, I have already created a form for data entry using content type section. I am facing problems in setting restrictions in the data displayed which are submitted through that form.
in flag
@user3099225 What I'm trying to say is that you're currently facing this issue because content types is the wrong tool for the job. And you will continue to face more issues if you try to continue down this route. I suggest you cut losses and try Webform.
user3099225 avatar
cn flag
@user3099225 does Webform provides image select / browse field ?
in flag
@user3099225 If you mean regular file uploads, yes out-of-the-box. If you mean Media Library, the [Media Library Form API Element](https://www.drupal.org/project/media_library_form_element) module adds support to Webform. Do note that Media Library is styled for Drupal's admin themes by default. If you plan to render the form on a non-admin route, you have to style the Media Library interface yourself.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.