+ Start a Discussion
SalesforceLearnerNewbieSalesforceLearnerNewbie 

Reduce the distance between two commandlinks and selectOption

I wish to make the selectionOption to be next to my "man eater" link. How can I do so. My code is as below:

<apex:selectCheckboxes value="{!subj}">
                                                <apex:selectOption itemValue="{!td}"><apex:commandLink action="{!showPopup}" value="man eater"></apex:commandLink></apex:selectOption>
                                                <apex:actionSupport event="onchange" action="{!Insert}" reRender="test" />
                                            </apex:selectCheckboxes>

Picture is belowUser-added image
Raj VakatiRaj Vakati
Wrap them in pageblocksection 

Refer this link 
https://laceysnr.com/checkboxes-and-columns-line-em-up/
<apex:pageBlockSectionItem> 
		<apex:selectCheckboxes value="{!subj}">
		 <apex:selectOption itemValue="{!td}">
		   <apex:commandLink action="{!showPopup}" value="man eater"></apex:commandLink>
		</apex:selectOption>
			<apex:actionSupport event="onchange" action="{!Insert}" reRender="test" />
        </apex:selectCheckboxes>


		
        </apex:pageBlockSectionItem>

 
SalesforceLearnerNewbieSalesforceLearnerNewbie
I tried but it wont work. I am wondering whether is there any other way round?
Thank you in advance 
Raj VakatiRaj Vakati
can you use bootstrap or SLDS styles  


https://www.lightningdesignsystem.com/components/form-element/

​​​​​​​
<div class="slds-form">
  <div class="slds-form-element slds-form-element_horizontal">
    <label class="slds-form-element__label" for="horizontal-input-id-01">Text Input</label>
    <div class="slds-form-element__control">
      <input type="text" id="horizontal-input-id-01" placeholder="Placeholder Text" class="slds-input" />
    </div>
  </div>
</div>

 
SalesforceLearnerNewbieSalesforceLearnerNewbie

I understand it but how can I save the value that I have checked based on my this code?

 

                                            <apex:repeat value="{!IF((todo_index < listtodocombined.size), listtodocombined[todo_index], false)}" var="td">
                                                <div class="slds-checkbox">
                                                    <input type="checkbox" name="default" id="checkbox-27" value="checkbox-27" />
                                                    <label class="slds-checkbox__label" for="checkbox-27">
                                                      <span class="slds-checkbox_faux"></span>
                                                      <span class="slds-form-element__label"><apex:commandLink action="{!showPopup}" value="{!td}"></apex:commandLink></span>
                                                    </label>
                                                  </div>
                                            </apex:repeat>

SalesforceLearnerNewbieSalesforceLearnerNewbie
I would like to save my checked value example *checkbutton*["I have a lot of thing"]. When I checked it, then "I have a lot of thing" will be saved into my controller variable named "checking"
SalesforceLearnerNewbieSalesforceLearnerNewbie
Can anyone assist me in this please, its urgent.