• Fabio Correia
    December 1, 2016 at 2:31 am #3204

    Hi,

    We are using SPARK UI 4.4.5 and when we try to apply the Coach Validation to a Radio Button or Radio Button Group the validation doesn’t work, the fields doesn’t get highlighted or any tooltip appears.

    We also tried wrapping the Radio Button inside a Status Box to display the error message but also in this case it doesn’t work. It’s required some kind of special configuration to apply validations to Radio Buttons and Radios Button Groups? For other fields like Input Text, Date Time Picker it works fine with or without Status Box.

    Best Regards,

    SPARK Support
    December 1, 2016 at 2:46 pm #3213

    Hi Fabio,

    Many of the controls are constructed based on the same prototype.  In this case, although the Radio Button has a isValid and setValid method, you are correct that there is no built-in output for a Radio Button.  You would need to wrap the set of elements in a Tooltip control and programmatically output a message.

    Regards,

    Stephen P.

    Fabio Correia
    December 2, 2016 at 12:31 am #3219

    Hi,

    We want our inputs to have a consistent UI and we are using the status box to display the CoachValidation error message bellow the input for the other inputs they all work fine but for the Radio Button Group it doesn’t.

    Also all the input fields are consistent on how to display the error message with highlight the input, tooltip and in our case the status box, for the Radio Button Group it will not even highlight the control.

    Can’t this functionality work out of the box like for the other inputs?

    Best Regards,

     

    SPARK Support
    December 2, 2016 at 1:21 pm #3223

    Hi Fabio,

    We have discovered that our documentation is incorrect.  The methods for setValid() and isValid() will be removed from the Checkbox and Radio Button controls for the upcoming release.

    However, we have discovered a bug in the Group controls that will be fixed in an upcoming release.  Radio Button Group should provide validation functionality similar to other controls.

    Regards,

    Stephen P.

    Canan Demir
    January 17, 2018 at 1:05 pm #4922

    Hi,

    We are using the latest version of IBM BPM UI Toolkit and we are having same problem. When we try to show Radio Button validation doesn’t work, the fields doesn’t get highlighted.

    We use it like this ; We added two radio buttons and a button to the Client Side Human Service Coach. We want to give the message when the button is pressed. When button click :

    $ {Yes_Button} .setValid (” please selected “); $ {Yes_Button}.isvalid(true);

    But there was no changes and the console did not have any errors. We also tried the following but it did not work either.       tw.system.addCoachValidationError(tw.system.coachValidation,”tw.local.radio”,”Required.”) ;

    Is there any improvement in this regard? Can you help us ?

    SPARK Support
    January 17, 2018 at 2:20 pm #4924

    Hi Canan,

    The Radio Button control does not provide and isValid() or setValid() method.  The Radio Button Group does however:

    http://support.salientprocess.com/docs/enterprise/RadioButtonGroup.html

    The setValid syntax would be:

    if(some conditional logic){${Radio_Button_Group1}.setValid(false, “Error message”);}

    The isValid syntax would be:

    if(${Radio_Button_Group1}.isValid()){some logic to execute;}

    Or to prevent a button on a boundary event from firing:

    return ${Radio_Button_Group1}.isValid();

    Regards,

    Stephen P.

    Canan Demir
    January 18, 2018 at 12:24 am #4925

    Hi,

    Thank you very much for your quick reply. I solved the problem using Radio Button Group instead of Radio button. I have seen that the setValid and inValid functions work for the radio button group.

    How can I show radio button group horizontal ?

    Thanks.

    SPARK Support
    January 18, 2018 at 9:21 am #4928

    Hi Canan,

    There is currently no configuration option to display the Radio Button Group control in a horizontal layout.

    Regards,

    Stephen P.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search