We are using Webform 8.x-5.27 with Drupal 8.8.6. I am kind of new although I have learnt a lot in Drupal and we have a site running in Drupal.
Scenario:
We have Drupal which has pages for anonymous users. However the Corporate OIDC based login which I have configured in the basic theme via js, ensures whenever user tries to access Drupal he gets challenged for authentication.
I am trying to add a javascypt code to be executed after ajax call as a Drupal behavior in Drupal 9. The expected outcome is to roll a dice after each ajax call that is refreshing a view.
I'm trying to create a custom version of the entity reference field and have been working through the code of the base type to figure out how it is working. Originally this was going to be a question specific to how are the content type checkboxes populated in the settings form (edit tab) when adding/editing an entity reference field to an node. Though, in the processes of writing the post, I think I figured that part out.
I have a user authorized to enter and modify the nodes he owns.
In the view of this content type I show the links for insertion and modification. So far, so good.
Now I need to check, based on a logical field if it can modify the node.
Ex .:
The content type has a logical field. If this field is false it can modify. If true it should hide the link to the edit (in the views), or in the form check this and prevent it from editing.
In the various readings I have done I have found this code but it does not work for me
I am new to Drupal and still figuring things out. But I am looking to take the following code from Codepen and make it a content page in my Drupal site. Is this possible? If so, some help would be much appreciated! I have been running into some issues!