How to have a value selected by default in input dialog box activity

Hello All,
I have 2 radio buttons ‘Yes’ and ‘No’ in input dialog box.
Is it possible to have ‘Yes’ option selected as default.

Is there any way to achieve this?
I am not allowed to use UIPath form related activities.

Can anyone pls give some answer?

Thanking you in advance

Hi @Deepa_Madkar ,

You can add an If Activity to check if the input variable is null or not, and if so then assign the default value →

IsNothing(yourVariable) OrElse String.IsNullOrEmpty(yourVariable.ToString)

Then → Assign Default Value
Else → Do Nothing

Kind Regards,
Ashwin A.K

Hi @ashwin.ashok
Thank you for the reply.

My requirement is to show a value as selected in the input dialog box.

i.e there are 2 options ‘Yes’ and ‘No’ displayed in input dialog box.

When i run the bot, the input dialog box should display ‘Yes’ radio button as selected.

The default selection should be visible to user.

Is this possible to achieve in any way?

Regards,
Deepa

@Deepa_Madkar
Hey Deepa,

Can you please elaborate, I am not getting what you are trying to achieve.

Yes option needs to typed by the bot?

@shreyash_shirbhate thanks for the reply.

My requirement is:
There is input dialog box which has two radio buttons: ‘Yes’ and ‘No’.
By default ‘Yes’ option needs to be displayed as selected when I run the bot.

I hope now I am clear with the requiremnt.
When I run the bot, the ‘Yes’ option should be shown as selected by default.

Hi @Deepa_Madkar ,

Sorry, I misunderstood the requirement.
Also, it seems as though that is not possible as there aren’t any parameters which help you with selecting default values.

image

Kind Regards,
Ashwin A.K

I don’t think we can do it. @Deepa_Madkar

This needs to be done on application side.

Thanks

@ashwin.ashok
I agree there are no parameters to achieve this directly hence posted this query to find if any work around is possible.
Anyway, thank you for taking some time out to answer

@shreyash_shirbhate
There’s no direct way hence had posted this query.

Thank you for the replies

1 Like

@Deepa_Madkar

You can achieve your requirement using UiPath Form activities only.

Hi @lakshman …thanks for the reply.
Yes u are right. But that is what i mentioned in my issue. I am not allowed to have that uipath form package.
Hence i posted this question to find if some work around available or not.

But thanks for the reply