Zum Hauptinhalt wechseln

Conditionally Required Floating Items

How to create a conditionally required field in APEX (21.2):

  • Create a Dynamic Action
    1. Event: Page Load
    2. Client-side Condition Type: Item = Value
    3. Item: P1_MY_REQUIRED_ITEM
    4. Value: Y
  • Create a True Action: Execute JavaScript Code
let item = $("#MY_ITEM_TO_BE_REQUIRED");
item.prop("required",true);
item.closest(".t-Form-fieldContainer").addClass("is-required");
item.find(".t-Form-inputContainer”).prepend(");

 For older versions look to the post of https://jeffkemponoracle.com/2019/07/conditionally-required-floating-item/

Kommentare

Noch keine Kommentare zu diesem Beitrag.