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 Pages / Configuration on the P...
Power Pages
Unanswered

Configuration on the Power Apps Portal WebForm

(0) ShareShare
ReportReport
Posted on by 114

Hi,

 

Please assist on the below queries on Power Apps Portal: 

 

>I want to create a 2 fields of type Lookup and Radio button on the Power Apps Portal Webform. Further I want to add a validation on the fields that the Lookup field should only be visible if a particular value is set in the Radio button.

 

> I've a SUBMIT button on the web page. I wish to display other fields on the underneath the SUBMIT button on the same web page on click of SUBMIT. Can anyone advise how we can achieve this?

 

> There is one Contact field on the web page, I wish to filter this field. This should be filtered and displays the associated contacts of the logged in contact's company. How can I achieve this?

 

> How can I get logged in contact's geolocations, latitude and longitude values?

 

> How can I get an embedded view on Google Maps on PowerApp Portal web page?

Categories:
  • OmarZaarour Profile Picture
    35 on at

    I have answers to some of your questions:

     

    For the first problem, you need to write JavaScript in that specific web form step to show/hide the lookup field if the radio button has a specific value. I normally use this helper JS library https://github.com/dynamicscode/XrmPortalJS

    I first attach an onchange even on the radio button and then I use the set visibility function on the lookup. 

     

    For the second problem, once you click submit, the page refreshes, do you mean after the refresh you want to show more fields?

     

    For the third problem, you need to use entity permissions with Account scope on the contact entity. This way, you will see the contacts belonging to the account of the logged in user.

     

    For the 4th problem, I assume that the long/lat values are stores on the contact record in CRM? If so, you can access them by the "user" liquid tag. You should be able to access any field for the logged in contact by user.{fieldLogicalName}, see details here https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects#user

     

     

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Ancy ,

    For your first question, do you want to show up the LookUp field only when a particular value is set in the Radio button? Based on the needs that you mentioned, I think JavaScript code could achieve your needs.

    The user @aberson has faced same needs with you, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Power-Apps-Portals/Hide-form-fields-on-entity-form-on-portal/td-p/432092

    More details about how to use JavaScript in web form/Entity form, please check the following article:
    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/add-custom-javascript

     

    For your second question, do you want to display other fields after you press the "Submit" button? Based on the needs that you mentioned, I think the JavaScript code could achieve your needs. Within the JavaScript code, you could use jQuery selector to find your "Submit" button, then bind a OnClick listener event to this button. Within this OnClick listener event handler, show up/hide the fields underneath the SUBMIT button.

     

    For your third question, do you want to filter this Contact Field LookUp results based on current log in contact's company? I think the "Related Records Filtering" option for this Contact field in your Entity form could achieve your needs. Please check the response within the following thread:

    https://powerusers.microsoft.com/t5/Common-Data-Service-for-Apps/Cascading-filters-to-guide-foreign-key-Selection-in-Model-Driven/m-p/462183

     

    For your fourth question, do you want to get the logged contact's geolocations, latitude and longitude values dynamically? If you want to get the logged contact's geolocations, latitude and longitude values dynamically, I afraid that there is no way to achieve your needs in PowerApps currently.

    If you have configured a Address Line field in your Entity, I think you could consider add a geolocation into your Entity form, please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/add-geolocation

     

    For your fifth question, if you want to display a Google Map within your Portal web page, please check the following thread for help:

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/281634/google-maps-in-crm-portals?pifragment-97030=1

     

    Best regards,

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
Harshit Chaubisa Profile Picture

Harshit Chaubisa 4

Last 30 days Overall leaderboard