"Default" record selection for Radio Button List does not work for manually triggered events

  • 16 February 2021
  • 0 replies
  • 125 views

Userlevel 5
Badge +20
 

"Default" record selection for Radio Button List does not work for manually triggered events

kbt158927

PRODUCT
K2 Five 5.2
K2 Five (5.2) Fix Pack 12
BASED ON
K2 Five 5.2
TAGS
SmartForms Designer
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

The "Default" record selection for Radio Button List does not work for manually triggered events.

Symptoms

 

1. Populated radio button list control on "When the view executed Initialize" rules  - The default value will be selected.

2. When Adding a new button, the populated radio button list control on “When Button is Clicked” rule - No any items are selected by default.

Both actions called to the same SmartObject and the rules are the same, but the result is different.

Resolution

This has been logged as a bug to be addressed in a future version of the product.

Workaround

  1. Open the form for editing.
  2. Create a Parameter “P1” on the Form.
  3. Open the inherited "When the view executed Initialize" rule,
  4. Re-enable the currently disabled rule.
  5. Add a condition: “If P1 Form parameter has a value of 1”.
  6. Click OK to finish rule.

BEFORE
Image

AFTER
Image

  1. Open the “When Button is Clicked” rule.
  2. Remove existing rule.
  3. Add “Execute another rule” action and select "When the view executed Initialize" rule.
  4. Add a transfer data rule and set the parameter “P1” to 1 and move it above the execute rule.
  5. Add a transfer date rule and set the parameter “P1” to 0 and move it below the execute rule.

BEFORE
Image
 

AFTER
Image


0 replies

Be the first to reply!

Reply