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 : B7TJ4Q7VZNEE0jRGFUZ+QV
Power Apps - Building Power Apps
Answered

how to set the default text in a field to be italicized?

Like (0) ShareShare
ReportReport
Posted on 24 Sep 2019 13:44:12 by 359

hi. i just want the default placeholder text in a field to be italic (i want it to say 100 characters max). when a user writes to in the box i still want it to be normal.

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,223 Most Valuable Professional on 24 Sep 2019 at 13:52:16
    Re: how to set the default text in a field to be italicized?

    Ok, I can think of a workaround for this,

     

    You set the italics Property of that item to a variable(ie DefaultItalVar), then you have the screen's OnVisible do:

    Set(DefaultItalVar, true)

    Then have the item's OnSelect do:

    Set(DefaultItalVar, false)

    Result is:

    Italics test.gif

     

    Cheers,

    Sancho

  • cchan000 Profile Picture
    359 on 24 Sep 2019 at 19:49:37
    Re: how to set the default text in a field to be italicized?

    hi. i'm so close. when i try to set the Italic to DefaultItalVar, it gives me a formula error right away. is this not the correct way to set a variable? photo here.

     

    d.png

  • Verified answer
    iAm_ManCat Profile Picture
    18,223 Most Valuable Professional on 25 Sep 2019 at 09:28:06
    Re: how to set the default text in a field to be italicized?

    Hi @cchan000 

     

    The error is temporary, until the variable is declared somewhere - using Set(etcetc, etc) - it will show an error as the variable doesn't exist as an assigned value yet. The error will disappear once you write the Set() functionality.

     

    You could also create the Set() first, which will then avoid that error, I just generally create the varible use first and the Set later so that the error reminds me to use Set for that.

     

    Kind Regards,

    Sancho

  • cchan000 Profile Picture
    359 on 26 Sep 2019 at 00:58:03
    Re: how to set the default text in a field to be italicized?

    thank you @iAm_ManCat . appreciate the help.

  • iAm_ManCat Profile Picture
    18,223 Most Valuable Professional on 26 Sep 2019 at 11:09:31
    Re: how to set the default text in a field to be italicized?

    You're welcome, Happy to help!

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard