def _create_specify_other_question_from_dict(d): kwargs = { u"type": u"text", u"name": u"%s_other" % d[u"name"], u"label": u"Specify other.", u"bind": { u"relevant": u"selected(../%s, 'other')" % d[u"name"] }, } return InputQuestion(**kwargs)