Dean Pepper, Iron Speed MVP
Dot Net Architect
January 4th 2012
Iron Speed Designer v9.0.1
This article has been built on the default Iron Speed Southwind database.
Step 2: Select the ‘save’ button, then in the Properties panel, click Custom Properties and click the ellipsis to open the Properties dialogue box.
Figure 2 – The custom properties for the ‘save’ button.
var answer = true;
var shipCountry =
if(shipCountry == "")
alert('Please enter a country');
if(shipCountry != "UK")
answer = confirm('Please confirm you want to ship outside the UK.');
The name of the text box control in my example is ‘ShipCountry, so the control Id on the page is ‘ct100_PageContent_ShipCountry’ as the name of the content placeholder is prefixed to the name of the controls you see in Iron Speed Designer.
The easiest way to find the name of the control to target is to use the Firebug add-on for Firefox. https://addons.mozilla.org/en-US/firefox/addon/firebug/
If someone attempts to save an order without entering the Ship Country, the warning message shown in Figure 5 will be displayed and the save will be cancelled.
Figure 5 – Error message when the Ship Country is not specified.
If a Ship Country other than the UK is entered, the confirmation message shown in Figure 6 will be displayed and the order will only be saved if ‘OK’ is clicked.
Figure 6 – Confirmation message when the Ship Country is not UK.
You can read more Iron Speed Designer articles on the Dot Net Architect website.