'This method removes a select_field option. The kwd dict searched for
the field index and option index which needs to be removed'

def __remove_select_field_option(self, trans, current_form, **kwd):

    message = ''
    status = ('ok',)
    option = (-1)
    for (k, v) in kwd.items():
        if (v == 'Remove'):
            index = int(k.split('_')[1])
            option = int(k.split('_')[2])
            break
    if (option == (-1)):
        message = ('Error    in    removing    selectfield    option',)
        status = ('error',)
        return (current_form, status, message)
    del current_form['fields'][index]['selectlist'][option]
    return (current_form, status, message)
