Allowing to select default License Expiration

Created on 8 February 2023, almost 2 years ago

Problem/Motivation

When adding a new product with commerce file field, I want to be able to hide the License expiration select filed and make it set to unlimited by default.

Steps to reproduce

Default installation and setup of the commerce module with commerce_file enabled and set up to a product type

Proposed resolution

It would be nice to have a setting for the "license_expiration" field of type Recurring period to set a default value. Currently editing is blocked by design so no way to change the field settings.

I spent the bigger part of the day trying to figure this out. I want to allow users to upload products with files. I don't want to show them an option to select license type. I want it to always be unlimited. So I tried to set the default value of the License Expiration filed to unlimited and my plan was to hide the field with css.

Meanwhile is there a better more resultful approach?

Feature request
Status

Active

Version

2.0

Component

User interface

Created by

🇭🇺Hungary Dajka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024