IT Monkey:   Click Here to Help Me Build the Agenda for Upcoming Cireson Webinars!

Custom Task: Loading a different form

Fredrik_BorchseniusFredrik_Borchsenius Customer IT Monkey ✭
edited September 2016 in Analyst Portal
Does anyone know how I can use a custom task to load a specific SR form? I have the following:

app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) {
	formObj.boundReady(function(){
		if (pageForm.viewModel.Source.Name === "DEV_TEST") {
			console.log("Source = Forslagskasse");
			//CODE HERE
		}	
	});
	return;
});
I need to change the SR form when source=DEV_TEST. 

After some digging, I'm assuming I need to set "session.user.ServiceRequestForm", but uncertain as to how.

Answers

  • Geoff_RossGeoff_Ross Cireson Consultant Super IT Monkey ✭✭✭✭✭
    Hi Fredrik,

    Interesting one. Not sure how this could be done off the top of my head. You can set the value of session.user.ServiceRequestForm but its not going to take effect.
    How different is the form you want to load, one way would be to use JS to manipulate the Default form to look different?

    Geoff
Sign In or Register to comment.