def _split_field(field, form):
    """
    Take a widget `field`, return section, variable name
    based on the widget object name having the form:
    section____variable
    with special cases for things like Solvers,
    where the index is inserted into the section name
    """
    sec = str(field.objectName().split('____')[0]).replace('_', ' ')
    var = str(field.objectName().split('____')[1])
    if var == 'cGprime':
        var = "cG'"
    elif var == 'cFprime':
        var = "cF'"
    elif var == 'phiprime':
        var = "phi'"
    if sec == 'Solver':
        index = int(form.ui.lblSolverIndex.text())
        sec = sec + ' ' + str(index)
    if sec == 'Rational':
        index = int(form.ui.lblRATIndex.text())
        sec = sec + ' ' + str(index)
    if sec == 'Action':
        index = int(form.ui.lblActionIndex.text())
        sec = sec + ' ' + str(index)
    if sec == 'Force':
        index = int(form.ui.lblActionIndex.text())
        sec = sec + ' ' + str(index)
    return sec, var
