Updated Home (markdown)
parent
36bc3461b2
commit
d58c9bd1c2
9
Home.md
9
Home.md
|
@ -72,3 +72,12 @@ To display each type of help text, add a custom property:
|
|||
| Placeholder text | `placeholder` | `Enter your email address here` |
|
||||
| Description text | `description` | `Upload a digitally-signed PDF file that is no more than 1GB in size.` |
|
||||
| Placeholder text | `help` | `# This is a large heading\n\nParagraph of text goes here.\n\nThe next paragraph goes here. You can even insert [links](https://sartography.com)!\n\nThis is a list:\n- Apples\n- Oranges\n- Bananas` |
|
||||
|
||||
|
||||
#### Dynamic labels
|
||||
|
||||
If the text label of a field needs to change based on the value of some other field(s) in the form, you can use a Formly Javascript expression (see above). The example below uses a ternary (if/then) operator to display a different label if the field `dogName` is filled out.
|
||||
|
||||
| Property > Id | Property > Value (example) |
|
||||
| ------------- | -------------------------- |
|
||||
| `label_expression` | `!!model.dogName ? 'How old is ' + model.dogName + '?' : 'How old is your dog?'` |
|
||||
|
|
Loading…
Reference in New Issue