block text entry in the calendar

Hello,

I would like to know if you have any idea how to block text entry in the calendar in the new version of Freedom.

What I want to achieve is:

  • Once the user fills in the time slot, the mini page should open automatically.
  • Text input in the calendar should be completely disabled.

Do you know if there is a way to configure or implement this behavior?

Thank you in advance for your help.

Like 2

Like

7 comments

Yes - I would also love to know how to disable that - if you find out, please let us know here as well. Sorry I can't offer any help. That option makes it so any rules and logic on the add page is bypassed. At minimum, it should just open the add page, not just add the record, but I've love to be able to turn it off completely when needed as well.

Hi Ali Amedioune,

Unfortunately, for now, it is not possible to modify the Calendar component to that extent. However, we have registered this idea for the responsible R&D team to consider and implement in future releases of the application.

Thank you.

When a calendar item is saved this way, it triggers the request "crt.SilenceCreateCalendarRecordRequest", which in turn uses the "createItem" function on the calender itself.

I have modified how this works in the past using the below example.
 

{
	request: "crt.SilenceCreateCalendarRecordRequest",
	handler: async (request, next) => {
		console.log(request);
 
		//e.g. Calendar_z3lmw6t
		let calendarName = request.itemsAttributeName;
 
		let calendar = await request.$context[calendarName];
		calendar.createItemBase = calendar.createItem;
 
		calendar.createItem = function (arg) {
			if(arg && arg.initialModelValues){
				arg.initialModelValues = {
					ShowInScheduler: true,
					Type: "703111e9-9d0b-49cb-9088-b2eb36620382",
					ActivityCategory: "e6037b85-14f3-445e-94dc-38bb1c08caf2",
					Owner: contactVal,
					Opportunity: oppoId,
					Account: account,
					Contact: contact,
					Lead: lead
				};
			}
 
			return calendar.createItemBase(arg);
 
		};
		await next?.handle(request);
		calendar.createItem = calendar.createItemBase;
	}
}

Ryan Farley,

Hello, my apologies for the delayed update.

I have consulted with Creatio, and they confirmed that unfortunately, it is not possible to disable text input in the calendar.

John Kingsbury,

Are you sure it disabled the text in the calendar for you?

Eduard Dovydovskyi,

Creatio told me the same

John Kingsbury,

That is fantastic to know. Thanks for sharing. 

Ryan

Show all comments