Select to view content in your preferred language

Make Title field Required in Print Widget

258
0
10-16-2024 02:23 AM
LakshanRasingolla
Emerging Contributor

I need to make the 'Title' field of the print widget required. By default, the title gets 'untitled' text if the field is empty.

1) How to make this field required for export?

Screenshot 2024-10-16 144158.png

 

      const printWidget = new Print({
        view: view,
        container: printContainerRef.current!,
        printServiceUrl: PRINT_SERVER_URL,
        templateOptions: {
          title: "ArcGIS Web Map",
          fileName: "ArcGIS Web Map",
          height: 500,
          width: 670,
        },
      });

 

 

2) How do you set a maximum value for height and width (map only)?

Screenshot 2024-10-16 145109.png

 

Tags (3)
0 Kudos
0 Replies