# Input from Dynamically created textboxes

**URL:** <https://community.plotly.com/t/input-from-dynamically-created-textboxes/17398>\
**Category:** Dash Python\
**Created:** [December 27, 2018, 10:37am UTC](https://community.plotly.com/t/input-from-dynamically-created-textboxes/17398 "2018-12-27T10:37:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahiidharv](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mahiidharv](https://community.plotly.com/u/mahiidharv)\
**Post date:** [December 27, 2018, 10:37am UTC](https://community.plotly.com/t/input-from-dynamically-created-textboxes/17398/1 "2018-12-27T10:37:07Z")

</div>

Hi, I created a dynamic layout using dropdown selection and a callback which has text boxes. I want to get the input from the text boxes to do some plots which is not working .  
@app.callback(dash.dependencies.Output(‘output-container’, ‘children’),  
[dash.dependencies.Input(‘my\_dropdown’, ‘value’)])  
def update\_output(value):  
if (cond…)  
d = html.Div(children=[  
html.P(’’),  
html.Div(dcc.Input(id=’’, value=1,  
type=‘int’)),  
html.P(’’),  
html.Div(dcc.Input(id=’’, value=,  
type=’’)),  
])  
elif codn :  
d = html.Div(children=[  
html.P(’’),  
html.Div(dcc.Input(id=’’, value=1,  
type=‘int’)),  
html.P(’’),  
html.Div(dcc.Input(id=’’, value=,  
type=’’)),  
])  
else :  
d = html.Div(children=[  
html.P(’’),  
html.Div(dcc.Input(id=’’, value=1,  
type=‘int’)),  
html.P(’’),  
html.Div(dcc.Input(id=’’, value=,  
type=’’)),  
])  
return d

@app.callback(dash.dependencies.Output(component\_id=‘output’,component\_property=‘children’),  
[dash.dependencies.Input(component\_id=‘my\_dropdown’, component\_property=‘value’),  
dash.dependencies.Input(component\_id=’’, component\_property=‘value’),  
dash.dependencies.Input(component\_id=’’, component\_property=‘value’),  
dash.dependencies.Input(component\_id=’’, component\_property=‘value’),  
dash.dependencies.Input(component\_id=’’, component\_property=‘value’),  
dash.dependencies.Input(component\_id=’’, component\_property=‘value’),  
dash.dependencies.Input(component\_id=’’, component\_property=‘value’)])

def dist(my\_dropdown,r,prob,n,p,lam,number):  
if ()  
return (some graph )  
elif return(some graph)  
else return (some graph)  
Text boxes are getting vreated but the text in the boxes I am unable to access in the next call back. I am new to Dash can anyone help me on this.
