Premium support for our pure JavaScript UI components
import RecurrenceStopConditionCombo from '../../lib/Scheduler/view/recurrence/field/RecurrenceStopConditionCombo.js';
import Override from '../../lib/Core/mixin/Override.js';
I did what you told to do, but as default value stills "never". How can i change this?
Attachments
Screenshot from 2023-05-04 11-16-48.png (30.28 KiB) Viewed 242 times
Try using this to change the label:
features : {
stripe : true,
dependencies : false,
taskEdit : {
items : {
recurrenceTab : {
items : {
recurrenceEditor : {
items : {
frequencyField : {
label : 'Custom Label'
}
}
}
}
}
}
}
},
It worked! But i'm still trying to remove the default value "never" on stopRecurrenceField. I've tried to use value, defaultValue, placeholder, but nothing seems to work
You can't "remove" it. You can localize it.
There are three possible options and they are localizable:
{ value : 'never', text : this.L('L{Never}') },
{ value : 'count', text : this.L('L{After}') },
{ value : 'date', text : this.L('L{On date}') }
The default is that the recurrence never stops. It will always be there no matter how far into the future you render your Scheduler.
Or you can stop after a count, or on a date.
Is it possible to set "count" as default?
One more thing, the daysCombo field is showing an option to non working days. How can i disable that option?
I can remove the never option on my select, but i'm trying to remove this never value as default of RecurrenceStopConditionCombo
Attachments
Screenshot from 2023-05-05 10-48-32.png (54.89 KiB) Viewed 225 times
As you can see, i did exactly as the other forum post told. But not what i expected
Attachments
Screenshot from 2023-05-05 10-53-57.png (20.07 KiB) Viewed 225 times
Screenshot from 2023-05-05 10-52-56.png (52.72 KiB) Viewed 225 times