Join the Team Forms community

Updated 6 days ago

Change size of SharePoint Data Field?

At a glance

The community member wants to create cascading drop-down menus for an Employment Agreement, where selecting a Job Title would populate the Job Description and Key Responsibilities fields. However, the long text in these fields is being cut off and not fully visible. The community member is looking for a way to either change the size of the SharePoint Data fields or populate the Job Description and Key Responsibilities in a Text Area instead of separate fields.

In the comments, another community member suggests using the "On Change" functionality to populate a text field when a selection is made in the SharePoint drop-down. This would allow the use of a SharePoint drop-down for the Job Title selection, and have the Job Description and Key Responsibilities appear in separate text fields when a title is selected, giving more control over the display format and space for the longer text.

I want to create cascading drop down menus, but it is for an Employment Agreement, so there will be more information in some fields than just a few words. I would like it to work so that when you select the Job Title, the next field will give you the option of selecting that title's job description, and the following field will provide the key responsibilities of the role. I watched the YouTube tutorial and have it working correctly as far as options, but because the fields are long and narrow, the information under Job Description and Key Responsibilities is being cut off and is not readable in full.

Is there a way to change the size of the SharePoint Data fields, OR a way to make specific text populate into a Text Area when an option is selected in a SharePoint Data field above it? As opposed to three SharePoint Data fields in a row, could I do a SharePoint Data field for the Job Title, that makes the Job Description and Key Responsibilities populate in a Text Area below it?

Thank you!

Marked as solution

This response from AI worked: 2. Alternatively, you can use the "On Change" functionality to populate a text field when a selection is made in the SharePoint drop-down. This would allow you to: - Use a SharePoint drop-down for the Job Title selection - Have the Job Description and Key Responsibilities appear in separate text fields when a title is selected - This gives you more control over the display format and space for the longer text Here's an example of how to set the value of another field when a SharePoint drop-down selection changes:

Plain Text
instance.root.getComponent("otherTextField").setValue('Hello from ' + data.textField)

You would need to modify this code to match your specific form fields and data structure.

View full solution
L
1 comment

This response from AI worked: 2. Alternatively, you can use the "On Change" functionality to populate a text field when a selection is made in the SharePoint drop-down. This would allow you to: - Use a SharePoint drop-down for the Job Title selection - Have the Job Description and Key Responsibilities appear in separate text fields when a title is selected - This gives you more control over the display format and space for the longer text Here's an example of how to set the value of another field when a SharePoint drop-down selection changes:

Plain Text
instance.root.getComponent("otherTextField").setValue('Hello from ' + data.textField)

You would need to modify this code to match your specific form fields and data structure.