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

ajax callback response issue with field in hook_form_alter when field in tabs via form display

I'm in Drupal 10 and have an ajax callback where I need it to return two fields. I've gotten this to partially work, but am running into an inconsistency depending on if the field is at the top level or under a tab via form display. In the below example, field_people in form display is a top level field, and field_featured is nested under a tab via form display.

Redirect user after login with SimpleSAML SSO

Hello!

I have a Drupal 10 site in which most nodes are locked to authenticated users. If an anonymous user lands on a locked page, they are prompted with 403 page with login block containing an SimpleSAML Federated login link (SSO), and a username and password field (for Drupal-created users). I'd like either sign-in method to reroute the user back to the node they were on upon successful login. Currently, it routes to /user/[username].

Notes:

Delete an entity (not published/enabled) within particular time of it's created time

  • I have entity for booking service. 
  • Here the entity will be created when user fills the form and proceed for booking.
  • Now the booking will be created with initial status of not published (status 0).
  • After payment done, that booking will be enabled/published.
  • If the payment not done the booking needs to be deleted within 10mins of it's created time.

​​​​​​
Any idea?

Issue with File Listing Option in Entity Browser for Image Selection

Hi everyone,

I’m facing an issue when selecting images while creating content. Two options are available—"Upload Images" and "File Listing." The "File Listing" option is not working as expected. However, the entity browser view is showing the correct preview, and the widget settings for both options (DropzoneJS for upload and a view for file listing) are properly configured. I’m using the View display as "File Entity Browser: Entity Browser."

How to add shopping cart button to webform

I have a pretty large webform which is submitting fine. Owners of the site now want to levy a charge for submitting the form by adding an Add To Cart button.

I don't want to create a whole product to include all the webform fields but will need the new product to include a couple of the existing webform field values.

I'm not sure how to go about doing this. All help appreciated.

Peter

Set default value of field on inline entity reference widget, from field on parent entity form

I have a few custom entities defined by a custom module. One entity called, 'scene' contains an entity reference field to another entity called 'placed_asset'. When a user is editing or adding a new 'scene' entity, they can also add a new 'placed_asset' entity via the inline complex widget.

Pages

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