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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Javascript - Set field...
Power Pages
Answered

Javascript - Set field value based on another field

(0) ShareShare
ReportReport
Posted on by 88

Hi All,  Apologies my Javascript isn't the best, still learning...

 

In Power Pages I have a Basic Form on a table/entity called "Application" with text fields "Address" and "PostalAddress", and a Yes/No Field called "CopyAddresstoPostal".  So if the user types in an Address and toggles the "Yes/No" field it should just copy the "Address" value to the "Postal Address" field.  I've tried lots of different ways but cant get this to work - nothing happens.  How can I achieve this please within PowerPages ?

 

In Portal Management I am in a Basic Form, Additional Settings, Custom Javascript.

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    PurdyeS Profile Picture
    88 on at
    worked it out document.getElementById("PostalAddress").value = document.getElementById("Address").value;

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard