HomeHomeDiscussionsDiscussionsGeneralGeneralFORM FLOW SET FIELD VALUE WITHOUT PROMPT OPTIONFORM FLOW SET FIELD VALUE WITHOUT PROMPT OPTION
Previous
 
Next
New Post
1/11/2017 2:04 PM
 

Hi,

My question is some how similar like this one..

http://stackoverflow.com/questions/38653050/c-sharp-bot-framework-how-to-set-a-field-optional-in-the-form-flow-dialog

Basically what i have to do, let say i have 3 prompt option.

------------------------------------

    [Prompt("Enter you loginid")]       
    public string loginId{ get; set; }       
    [Prompt("Enter Your Name")]       
    public string name{ get; set; }    
    [Prompt("Your qualification")]       
    public string qua{ get; set; }

       public static IForm<DetailForm> BuildForm()
        {
            return new FormBuilder<DetailForm>()
                .AddRemainingFields()
                .Build();
        }

------------------------------------

in the above code i dont want it to prompt for "login id" i have save it in my StateClient servie so i have to set it from there not to ask these from user .. in short it should skip and prompt for second option name and qualification.

Please let me know how to write that code... how to set the value and how to skip the 1 option from user.

Many Thanks

 
New Post
1/11/2017 9:45 PM
 

You want to use FormBuilder (see: https://docs.botframework.com/en-us/c...ml#controlFlow)

 

 
New Post
1/13/2017 2:09 AM
 

I saw that post and i am also using FormBuilder only... but the link which you have provided there is no such code where we are setting some default value without prompting the user..

 
New Post
1/13/2017 2:30 AM
 

I have never seen it without proppting the user, only by prompting the user with a default value:

https://docs.botframework.com/en-us/c...ml#initialState

 

 
Previous
 
Next
HomeHomeDiscussionsDiscussionsGeneralGeneralFORM FLOW SET FIELD VALUE WITHOUT PROMPT OPTIONFORM FLOW SET FIELD VALUE WITHOUT PROMPT OPTION