This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Multivalue field on same line in FieldFormatter module

Hi, I'm working on moving from D7 to D10 a module that adds a specific display for entity reference fields (i.e. to print first + last name rather than login for users, and other things related to our contents).

This part works fine (with a class that extends FormatterBase) but with multivalued fields each value is on a separated line. I tried in the viewElements() to cleanup any classes, or to insert style, or inline classes, but it seems that the DIV prevents the inline to work (DIV field-labels + field-label each).

How to reset counter in Drupal form using AJAX

Hello,

I am new to module development.

I like incrementing the counter using AJAX in the Drupal form, which works. I like to add a reset button to reset the counter, but I am not sure how.

Adding Paypal buttons and link

Running Drupal Version 8.9.18. Have set up subscription service in Paypal and want to link buttons to website. Have pasted the Paypal code into a content box and tried again with pasting into the link box but I just get a lot of code and not a button. 
I'm not a programmer so please be very basic in any replies. Also I need to link Paypal to Drupal via an API number but I am not sure where to find it. Can anyone help. Thanks in advance. 

How to manually trigger replacing bigpipe snippets with content? (javascript)

I am using jQuery.smoothState.js for Drupal 9 page transitions. 

When transitioning to a new page, jQuery.smoothState.js updates the content div with new content and the <title></title> element (in <head>) with a new page title. This new content has bigpipe snippets that are not resolved to their respective contents: 

#ajax Form API to do two things

This part of my custom form depends on ajax to conditionally show additional fields. It is working.

[help] Checking if the Min Max field in an exposed view exist.

Hey guys,

I've been having trouble accessing certain fields in an exposed filter.

I have a content type where I insert 3 prices for different types of products.
Some products will have all 3 prices added some just 2 or 1.

All prices are entered based on one currency (EURO).
However, Using twig I have to display one of the prices in $USD, lets call it price 3.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions