Field: Cost Calculator Form
WLCost Hyperlink.Calculator Form.
AbilityCost calculator form for users to createfill aout hyperlinkand (outsidefind ofout richcurrent text)and potential savings. To be used with contentcost blocks,calculator forresults useon withanother resource ID, External URL, Modal or Scroll to IDresource.
Category: Waterlogic Fields.
Content Blocks Documentation: https://docs.modmore.com/en/ContentBlocks/v1.x/Fields/index.html
figure 1
Additional Settings: (as found within field cog, highlighted in blue)cog)
Settings
HyperlinkRedirect Text:to?: What resource ID is the form results layout on? Required
Form Heading: Heading content above the form. Default empty. (If left empty will use lexicon variable).
Form Content: Content above the form. Default empty. (If left empty will use lexicon variable).
Global Settings for the calculator (context based and lexicons)
This is a preconfigured form and uses settings and variables in:
Website Settings (found on the Modx dashboard, see figure 3)
figure 3
Under website settings go to Cost Calculator:
figure 4
To manage settings for other contexts, select context under the ModalChoose PopupContext dropdown. (seen in image above).
Lexicons
Tooltips, placeholders and general content block
Font Size: Select the text size from the pre-defined list of sizes. Default Regular.
Font Awesome Icon: Font Awesome Icon to use to the left of the hyperlink, see (https://fontawesome.com/icons?d=gallery) for icons that can be used.
For Example: Star icon (https://fontawesome.com/icons/star?style=solid) the value to be used would be fa-star.
Open in new window?: Should this link open in a new window?
Alignment: What position should this sit within the layout. Left, right or centre. Default Left.
Arrow Position: Should the arrow display to the left ortop right of the link.Modx Defaultdashboard Right.and select Lexicons.
figure 5
To find lexicon values for cost calculator, select Waterlogic -> cost_calculator -> en (namespace -> topic -> language) where "en" is the language to are going to edit.
figure 6
Sample Output:







