web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove ReadOnly Attrib...
Power Automate
Answered

Remove ReadOnly Attribute from HTML Element in Edge browser

(0) ShareShare
ReportReport
Posted on by 65

Okay, so I am trying to interact with a date picker that is set to Read-Only and requires you to use the calendar picker interface to set the value.  If I go into the HTML and remove the readonly attribute, I am able to manually type into the input field and set the date so now I am trying to do that programmatically.

 

How would I go about this?

I have the same question (0)
  • Verified answer
    BI_RPA_Andy Profile Picture
    65 on at

    Sheesh, I was making this way too complicated...I was not aware of the 'Run JavaScript Function on web page' action!

     

    Here is the code I used.  Since the element didn't have an ID I just did a query using the element type and name.

     

    function ExecuteScript() 
    {
    	var elements = document.querySelectorAll('input[name="to"]');
    	
    	elements.forEach
    	(
    		function(element) 
    			{
    			element.removeAttribute('readonly');
    			}
    	);
    }

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard