it is not possibIe to set defauIt vaIues for mandatory parameters?

Is the beIow statement correct regarding input parameters

1.It is not possibIet ot set defauIt vaIue for mandatory paramters.

(non - mandatory ones can be set to defauIt vaIues)

Hi Remya,

It is very easy to find this out by just trying this out in Service Studio.

As you see in the next picture, if the Mandatory property is True, the Default Value property is greyed out, and not available to set.


When the Mandatory property is set to False, the Default Value property can be changed.

Regards,

Daniel

Yes, Remya you are correct..we can not give a default value to any mandatory input parameters. Otherwise, there would not be any meaning to keep that parameter mandatory


Thanks,

Sachin

Hi, 

Just to add to the answers. 

If the Mandatory Input is a Screen Variable, while you can't specify a custom default value, if the request to the screen was made from the Browser, the value for the input parameter may not be present. In that case, the variable will be initialized with the parameter Data Type Default value. 

Cheers 

Eduardo Jauch wrote:

Hi, 

Just to add to the answers. 

If the Mandatory Input is a Screen Variable, while you can't specify a custom default value, if the request to the screen was made from the Browser, the value for the input parameter may not be present. In that case, the variable will be initialized with the parameter Data Type Default value. 

Cheers 

Thanks for this, this is really addon, I was aware of first thing that we can not have default if its mandatory but not about this. thanks.


Hi, 

You're welcome. 

This can happen, for example, if you have a link in your screen using an external URL element, instead of a Destination. 

Cheers.