PricingBlog

Global formula for setting/mapping & handling object for a feedback/alert dialog attribute

  • alfred_66594-1215239156922318878

    Alfred

    1 year ago

    Hi,
    I have an alert/feedback dialogue component that we use globally to provide user feedback from our features eg. when we communicate destructive alerts when destructive events occur. Our dialogue has an attribute which takes an object with a specific structure with keys, such as intent, primary action label, secondary action label, message, target_title, and target_feature_name. I am thinking of creating a custom formula to set this dialogue so that I have a global formula that can be used on all pages, however, this functionality would be easy to handle in Toddle's built-in formula editor, however, these formulas cannot be used globally.
    What is your general opinion and experience on the best way to handle mapping of object attributes on a global level, such as used for toasts or dialogues?
    1215239157266255902-image.png