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 Apps / How to pass static str...
Power Apps
Answered

How to pass static string to the control

(0) ShareShare
ReportReport
Posted on by 40

Simple requirement. Want the consumer of the control to specify a hardcoded string e.g. relationship_name during configuration time.

 

Have tried setting the usage="input" on the property but this way the control does not appear at all.

 

What the is the recommended way to achieve this?

I have the same question (0)
  • Verified answer
    Hemant Gaur Profile Picture
    Microsoft Employee on at
    Since we do not have the unbound controls supported yet you will need to have one dummy bound field to b able to show he control in config UI. So net net two properties in manifest, one bound and another input.

    Hemant
  • Yawer Profile Picture
    8 on at

    I did a custom control which asks for a JS regex to be passed as a string on form design while configuring the control. My control was ok and I used this regex for data validation. I may be incorrectly understanding you but looks like using a  property of type "SingleLine.Text" with "input" as usage we can do it. So it may be another thing stopping your control to appear. One more thing that was helpful was after initial (basic) testing, I started testing in D365 form. 

  • Verified answer
    Sheldon Copper Profile Picture
    200 on at

    I am assuming you want something like thisI am assuming you want something like this

    I am passing a hardcoded value through input.

     

    <property name="addressLatitude" display-name-key="Your_Display_key" description-key="Your_Display_key_Description" of-type="SingleLine.Text" usage="input"/>

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard