Add text to top of DispForm.aspx dependant on specific field value

%3CLINGO-SUB%20id%3D%22lingo-sub-690206%22%20slang%3D%22en-US%22%3EAdd%20text%20to%20top%20of%20DispForm.aspx%20dependant%20on%20specific%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-690206%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20add%20the%20word%20%22Jersey%22%20in%20red%2Fbold%20to%20the%20top%20of%20the%20Display%20Form%20page%20on%20a%20SharePoint%20list%20when%20'Jersey'%20is%20selected%20from%20the%20'Location'%20dropdown%20field.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20could%20you%20let%20me%20know%20if%20this%20is%20possible%3F%20And%20how%20I%20would%20achieve%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-690206%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1007863%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20text%20to%20top%20of%20DispForm.aspx%20dependant%20on%20specific%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1007863%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20anyone%20able%20to%20help%20please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1009704%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20text%20to%20top%20of%20DispForm.aspx%20dependant%20on%20specific%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1009704%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359684%22%20target%3D%22_blank%22%3E%40Sam1209%3C%2FA%3E%26nbsp%3BGiven%20that%20this%20is%20a%20custom%20display%20form%2C%20it%20should%20be%20possible%20to%20do%20this%20with%20basic%20javascript%20to%20detect%20the%20dropdown%20change%20and%20set%20that%20value%20in%20the%20top.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1010548%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20text%20to%20top%20of%20DispForm.aspx%20dependant%20on%20specific%20field%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010548%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39836%22%20target%3D%22_blank%22%3E%40Beau%20Cameron%3C%2FA%3E%2C%20I%20thought%20this%20would%20be%20the%20case%20however%20I%20have%20limited%20knowledge%20of%20Javascript.%20Is%20anyone%20able%20to%20help%20with%20this%20please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I need to add the word "Jersey" in red/bold to the top of the Display Form page on a SharePoint list when 'Jersey' is selected from the 'Location' dropdown field.

 

Please could you let me know if this is possible? And how I would achieve this?

3 Replies
Highlighted

Is anyone able to help please?

Highlighted

@Sam1209 Given that this is a custom display form, it should be possible to do this with basic javascript to detect the dropdown change and set that value in the top.

Highlighted

Thanks @Beau Cameron, I thought this would be the case however I have limited knowledge of Javascript. Is anyone able to help with this please?