Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Adding Multiple Objects to One Table Cell

Avatar

Level 1

I am in the process of creating a checklist.  It is a very simple form with three columns and eight rows.  Depending on the topic of the row the third column in that row may need to contain multiple check boxes along with a drop down list or multiple check boxes, a drop down list and a free text field.  The issue is that when I create a check box within the third column of a row the check box takes up the whole field and I cant figure out how to add a second check box much less a second or third object.  Please help. 

1 Reply

Avatar

Level 7

Here's my solution. Basically, the cell with multiple objects gets a subform inside, and the items inside of that are hidden by default. Then, based on the choice in a dropdown list, I make them visible.

784818_pastedImage_1.png

784819_pastedImage_2.png784820_pastedImage_3.png

784821_pastedImage_4.png784822_pastedImage_5.png

The script:


sfCell.sfCBSet.presence = sfCell.ddSomething.presence = sfCell.tfSomething.presence = "hidden";


switch (this.rawValue){


  case "Checkboxes":


    sfCell.sfCBSet.presence = "visible";


    break;


  case "Dropdown":


    sfCell.ddSomething.presence = "visible";


    break;


  case "Text Field":


    sfCell.tfSomething.presence = "visible";


    break;


}