I am developing an app in Teams - power app.
Want to disable the submit button till the mandatory field is not filled.
Tried to control it via Dataverse table, by selecting Colum Required property to : Business required.
But seems it has no effect, may be updated the property later
Therefore, trying to control it via, So if the field is not filled/Blank, the submit button will remain disabled.
Below is my code and error image on the screen,
pls. guide correction
Thank you.
Good learning for me today.
Best Regards
Sorry. It was a simple problem, but it took us a long time because of misunderstanding . I hope you understand.
.Text obtains value from both number format and text format. Number format is used for real-time validation during input.
Text – Text that appears on a control or that the user types into a control.
Value – The value of an input control.
Does ".value" of Text Input field work?
Thank you for your support , at last it worked ... Oh.....
Just for my learning, Its strange :
The code accepts .value for Text Format field
The code accepts .Text for number format field
surprised, as it is opposite method acceptance.
Any learning link or material to understand more on this,
Best regards
If any one of the two is empty, it is disabled" - I misunderstood the condition
please change "&&" to "||"
But the result is not perfect. please note my reply
It bring the result for first condition only, for cardvalue5 it does get affected.
pls. guide
Oh.. I didn't noticed Value was used instead of .Text. Text is correct.
sorry,
Can not understand what mistake I am doing, applied the revised code (.value did not accepted was underlining red for error), so applied the below and no error lining but still not the perfect result.
It gets applied for datacardvalue1 but dont get in effect if the datacardvalue5 is blank.
Below is the image
note: datacardvalue1 is a text field
datacardvalue5 is a number field
Can notice field SvcSMR is blank, still the Tick mark Icon is enabled
Please guide
the first condition and the second condition is same. please check...
IsBlank(DataCardValue1.Value) && IsBlank(DataCardValue1.Value),
Thank you
Applied the code, it accepted, no error underline now.
BUT has no impact on the result.
For test purpose, on the previous record, if removed the value from field and made it blank, found it has no impact on the Icon, It remained enabled. While the requirement is what ever the Form Mode be (Edit, View, New), If these 2 fields blank, it should be disabled,
I dont know if I am approaching the requirement in the right way.
Please guide
==================