How to retain checkbox value

Certified Associate Developer

Hello All,

 

I'm trying to add checkbox control inside my interface form. Requirement is to just display the single checkbox. Below is the code im using

 

a!checkboxField(

choiceLabels:"Allow?",

choiceValues:"1",

saveInto:ri!choiceValue

)

 

The issue happening here is related to the checkbox value. Whenever I checked the box and click anywhere else, It automatically gets unchecked. Can someone please tell me how to retain its value? Also I'm calling this checkbox through rule in the main interface form. Whenever I open the main interface form and clicks the checkbox, Its value remains null 

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Vinay Kumar Rai
    Hey Chandu/Vinay,

    My datatype is text. Let me describe the entire scenario. I have one main interface form which is being used in process model. Inside that form I'm calling checkbox field using rule!InterfaceName. So my code on both the form is something like

    Form 1: MainInterfaceform

    interface Input: choiceValue, type:text

    rule!checkBoxInterface(
    choiceValue:ri!choiceValue
    )


    Form 2: checkBoxInterface

    a!checkbox(
    choiceLabels:"Allow?"
    choiceValue:"1",
    value:ri!choiceValue,
    saveInto:ri!choiceValue
    )
Children