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

Community site session details

Session Id : +DRlR2VcsrIvLO5+fHEWfL
Power Apps - Power Apps Pro Dev & ISV
Answered

How to pass static string to the control

Like (0) ShareShare
ReportReport
Posted on 11 Jun 2019 10:32:22 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?

  • Verified answer
    Sheldon Copper Profile Picture
    200 on 12 Jun 2019 at 04:39:50
    Re: How to pass static string to the control

    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"/>
  • Yawer Profile Picture
    8 on 11 Jun 2019 at 11:52:59
    Re: How to pass static string to the control

    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
    Hemant Gaur Profile Picture
    on 11 Jun 2019 at 11:22:22
    Re: How to pass static string to the control
    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete