I recently wasted an embarrassing amount of time trying to figure out how to simply set a default value in a text field on a page created by a Data Services User Interface (DSUI) builder. So, after having finally found the solution, I thought I thought I better post it so it might be found more easily in the future. Here’s the skinny:
UPDATE: Please take care to note the first comment to this post; it adds important information.
Navigate to the Design tab of your consumer model, which contains the page and text field where you want to have a default value. Select the page in the application tree (under Pages). In the visual display of the page, you can right-click the field and select Formatting and Visibility > Attribute Setter, as shown below:
This creates a new Attribute Setter builder in the model. Set the Page Locations to be single, select the appropriate page, and then add name as an attribute to set in the Attribute List table. Under the value column, type a string value to represent the default (this could also be a variable, the result from an Action, the result from an Action List, or the result of a Method).
After you click Apply to apply the settings of the Attribute Setter builder, you will then see the default value in the UI of the page instead of the field’s logical name.
When you run the application the form field value will be pre-populated as per your settings.



