I would like to know better way to select a row from a grid. Appian 6

I would like to know better way to select a row from a grid.

Appian 6.5.3...

OriginalPostID-104041

OriginalPostID-104041

  Discussion posts and replies are publicly visible

Parents
  • Since you are in an old version you can use a different approach:

    1. Use JavaScript validation so the user cannot select more than one. See example at forum.appian.com/.../48235

    In the example I am simply doing a Custom JS Validation.

    return window.FormAPI.getValue("favActorCheckbox").id.split("1").length -1 == 1

    2. Use JavaScript to uncheck all previously checkboxes except for the one that the user is clicking on. See example at forum.appian.com/.../48235

    his function does the trick:

    function checkDoneWhenAnsweredPara(answerFieldInput, doneCheckboxFieldInput) {

    var selectedIndex = window.FormDesigner.lastRowEvent;
    if (selectedIndex == 0) {
    answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
    doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput);
    } else {
    answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
    doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput+ '_' + selectedIndex);
    }
    if (answerField != null && answerField.html() != '') {
    doneCheckBox.attr('checked',true);
    } else {
    doneCheckBox.attr('checked',false);
    }
    }


    In the example, the process model is under Process Models – Forum and is called Checkboxes and Paragraph Grid with a JavaScript file called gridYesNoAndParagraph.js under Default Community > Temporary Documents Knowledge Center > Temporary Documents>JS Libraries.
Reply
  • Since you are in an old version you can use a different approach:

    1. Use JavaScript validation so the user cannot select more than one. See example at forum.appian.com/.../48235

    In the example I am simply doing a Custom JS Validation.

    return window.FormAPI.getValue("favActorCheckbox").id.split("1").length -1 == 1

    2. Use JavaScript to uncheck all previously checkboxes except for the one that the user is clicking on. See example at forum.appian.com/.../48235

    his function does the trick:

    function checkDoneWhenAnsweredPara(answerFieldInput, doneCheckboxFieldInput) {

    var selectedIndex = window.FormDesigner.lastRowEvent;
    if (selectedIndex == 0) {
    answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
    doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput);
    } else {
    answerField = $('#fd_component_' + window.FormDesigner.runtimeNamespace+answerFieldInput+ '_' + selectedIndex);
    doneCheckBox = $('#checkboxControl_fd_component_' + window.FormDesigner.runtimeNamespace+doneCheckboxFieldInput+ '_' + selectedIndex);
    }
    if (answerField != null && answerField.html() != '') {
    doneCheckBox.attr('checked',true);
    } else {
    doneCheckBox.attr('checked',false);
    }
    }


    In the example, the process model is under Process Models – Forum and is called Checkboxes and Paragraph Grid with a JavaScript file called gridYesNoAndParagraph.js under Default Community > Temporary Documents Knowledge Center > Temporary Documents>JS Libraries.
Children
No Data